From 3c57a38f264ff629baa318998bc7d28400ea51e4 Mon Sep 17 00:00:00 2001 From: lakinduakash Date: Tue, 5 Mar 2019 00:15:26 +0530 Subject: [PATCH] Add make file --- src/makefile | 22 ++++++++++++++++++++++ src/{ => scripts}/Makefile | 0 2 files changed, 22 insertions(+) create mode 100644 src/makefile rename src/{ => scripts}/Makefile (100%) diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..908dce9 --- /dev/null +++ b/src/makefile @@ -0,0 +1,22 @@ +CC=gcc +CFLAGS=`pkg-config --cflags gtk+-3.0` + +ODIR=../build + +LIBS=`pkg-config --libs gtk+-3.0` + + +_OBJ = main.o +OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) + + +$(ODIR)/%.o: ui/%.c + $(CC) -c -o $@ $< $(CFLAGS) + +wihotspot: $(OBJ) + $(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS) + +.PHONY: clean + +clean: + rm -f $(ODIR)/*.o \ No newline at end of file diff --git a/src/Makefile b/src/scripts/Makefile similarity index 100% rename from src/Makefile rename to src/scripts/Makefile