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