summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-07-16 14:23:19 +0200
committerKevin Chabowski <kevin@kch42.de>2013-07-16 14:23:19 +0200
commite1dd4d63c1e3cd63b1ebc84d54f91f91afa16dba (patch)
tree5602bf3158d519dcaddbdf3c6f435f25a1a5e6e7 /Makefile
parent96e772d25d37cfb3a57b503680f22e8b8df7cb45 (diff)
downloadnebula2-e1dd4d63c1e3cd63b1ebc84d54f91f91afa16dba.tar.gz
nebula2-e1dd4d63c1e3cd63b1ebc84d54f91f91afa16dba.tar.bz2
nebula2-e1dd4d63c1e3cd63b1ebc84d54f91f91afa16dba.zip
Reading of config implemented.
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