mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
Add make file
This commit is contained in:
parent
d71f4e1964
commit
3c57a38f26
22
src/makefile
Normal file
22
src/makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user