diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-05 01:07:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-05 01:21:28 +0200 |
commit | e4535303d2062b6d959d7ecd88ce97dd75684784 (patch) | |
tree | 3a5b30b99079fef3b42c2169af4d1dc5447ea1af /Makefile | |
download | apsh-e4535303d2062b6d959d7ecd88ce97dd75684784.tar.gz apsh-e4535303d2062b6d959d7ecd88ce97dd75684784.tar.bz2 apsh-e4535303d2062b6d959d7ecd88ce97dd75684784.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..16394bb --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + apsh.o + +HDR =\ + config.h + +all: apsh +$(OBJ): $(@:.o=.c) $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) + +apsh: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +clean: + -rm -f -- *.o *.su apsh + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all clean |