aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2018-07-31 21:02:55 +0100
committerZoRo <dos21h@gmail.com>2018-07-31 21:02:55 +0100
commit7649df10ac7d1503fde181faa5d356177b40c2df (patch)
tree28681731095cebe9cdac73d37ad9c1af1d7c7bcc /Makefile
downloadnotifylist-7649df10ac7d1503fde181faa5d356177b40c2df.tar.gz
notifylist-7649df10ac7d1503fde181faa5d356177b40c2df.zip
Initial commit
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