From 7649df10ac7d1503fde181faa5d356177b40c2df Mon Sep 17 00:00:00 2001 From: ZoRo Date: Tue, 31 Jul 2018 21:02:55 +0100 Subject: Initial commit --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c7dc48b --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +PROJECT=notifylist +CC=gcc +CXX=g++ +CFLAGS= +LDFLAGS= +SOURCES=$(wildcard *.c) +OBJECTS=$(SOURCES:.c=.o) +INCLUDE=-I./extlib/ + +all: createextlib $(OBJECTS) $(PROJECT) + +$(PROJECT): $(SOURCES) notifylist.c + $(CXX) -c notifylist.c + $(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o $(PROJECT) + +%.o: %.c + @echo $@ + @$(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $(subst .c,.o,$<) + + +EXTLIB_SOURCES=$(wildcard extlib/*.c) +EXTLIB_OBJECTS=$(EXTLIB_SOURCES:.c=.o) +OBJECTS+=$(EXTLIB_OBJECTS) +createextlib: $(EXTLIB_OBJECTS) + #asd + +clean: + rm -f $(PROJECT) *.o extlib/*.o \ No newline at end of file -- cgit v1.2.3