From e4535303d2062b6d959d7ecd88ce97dd75684784 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 5 Jul 2021 01:07:35 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2