Add make file

This commit is contained in:
lakinduakash 2019-03-05 00:15:26 +05:30
parent d71f4e1964
commit 3c57a38f26
2 changed files with 22 additions and 0 deletions

22
src/makefile Normal file
View File

@ -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