summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f4e475c..81c41cb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,18 @@
-CC=gcc -Wall -Werror -pedantic -std=c99
-
-all:
+CC=gcc
+CFLAGS=-Wall -Werror -pedantic -std=c99 -static
+LIBS=-Liniparser -liniparser
+nebula2: nebula2.o iniparser/libiniparser.a
+ $(CC) $(CFLAGS) -o nebula2 nebula2.o iniparser/libiniparser.a
+iniparser/libiniparser.a:
+ make -C iniparser libiniparser.a
%.o:%.c
- $(CC) -c -o $@ $<
+ $(CC) $(CFLAGS) -c -o $@ $<
clean:
- rm -f *.o \ No newline at end of file
+ rm -f *.o
+
+nuke: clean
+ rm -f nebula2 \ No newline at end of file