diff options
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | st.c | 2 |
2 files changed, 4 insertions, 8 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | include config.mk | 4 | include config.mk |
| 5 | 5 | ||
| 6 | SRC = st | 6 | SRC = st.c std.c |
| 7 | OBJ = ${SRC:.c=.o} | 7 | OBJ = ${SRC:.c=.o} |
| 8 | 8 | ||
| 9 | all: options st | 9 | all: options st |
| @@ -18,11 +18,7 @@ options: | |||
| 18 | @echo CC $< | 18 | @echo CC $< |
| 19 | @${CC} -c ${CFLAGS} $< | 19 | @${CC} -c ${CFLAGS} $< |
| 20 | 20 | ||
| 21 | ${OBJ}: config.h config.mk | 21 | ${OBJ}: config.mk |
| 22 | |||
| 23 | config.h: | ||
| 24 | @echo creating $@ from config.def.h | ||
| 25 | @cp config.def.h $@ | ||
| 26 | 22 | ||
| 27 | st: ${OBJ} | 23 | st: ${OBJ} |
| 28 | @echo CC -o $@ | 24 | @echo CC -o $@ |
| @@ -35,7 +31,7 @@ clean: | |||
| 35 | dist: clean | 31 | dist: clean |
| 36 | @echo creating dist tarball | 32 | @echo creating dist tarball |
| 37 | @mkdir -p st-${VERSION} | 33 | @mkdir -p st-${VERSION} |
| 38 | @cp -R LICENSE Makefile README config.def.h config.mk \ | 34 | @cp -R LICENSE Makefile README config.mk \ |
| 39 | st.1 ${SRC} st-${VERSION} | 35 | st.1 ${SRC} st-${VERSION} |
| 40 | @tar -cf st-${VERSION}.tar st-${VERSION} | 36 | @tar -cf st-${VERSION}.tar st-${VERSION} |
| 41 | @gzip st-${VERSION}.tar | 37 | @gzip st-${VERSION}.tar |
| @@ -2,7 +2,7 @@ | |||
| 2 | #include <stdio.h> | 2 | #include <stdio.h> |
| 3 | 3 | ||
| 4 | int | 4 | int |
| 5 | main(int argc, char *argv[]) { | 5 | Xmain(int argc, char *argv[]) { |
| 6 | if(argc == 2 && !strcmp("-v", argv[1])) | 6 | if(argc == 2 && !strcmp("-v", argv[1])) |
| 7 | eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); | 7 | eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); |
| 8 | else if(argc != 1) | 8 | else if(argc != 1) |
