summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
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