aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-12-03 17:57:36 -0500
committerFranklin Wei <git@fwei.tk>2015-12-03 17:57:36 -0500
commit1c795424fde9839ab6ebfd49ce7a84ac946be3c0 (patch)
tree2a33473d1ada10efe52b770ce9ec8ab2d452ec20 /Makefile
downloadnetcosm-1c795424fde9839ab6ebfd49ce7a84ac946be3c0.zip
netcosm-1c795424fde9839ab6ebfd49ce7a84ac946be3c0.tar.gz
netcosm-1c795424fde9839ab6ebfd49ce7a84ac946be3c0.tar.bz2
netcosm-1c795424fde9839ab6ebfd49ce7a84ac946be3c0.tar.xz
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..48461d7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CC = gcc
+OUT = build
+PLATFORM = unix
+
+NETCOSM_OBJ = src/server.o src/client.o src/auth.o
+
+CFLAGS = -lgcrypt -Og -g -I src/ -I target/$(PLATFORM) -Wall
+
+all: $(OUT)/$(PLATFORM).bin
+
+$(OUT)/$(PLATFORM).bin: $(NETCOSM_OBJ) Makefile
+ mkdir -p $(OUT)
+ $(CC) $(NETCOSM_OBJ) $(CFLAGS) -o $(OUT)/$(PLATFORM).bin
+
+install: $(OUT)/$(PLATFORM).bin
+ install $(OUT)/$(PLATFORM).bin /bin/netcosm
+
+clean:
+ rm -f $(OUT)/$(PLATFORM).bin
+ rm -f $(NETCOSM_OBJ)