diff --git a/.gitignore b/.gitignore index 5d683094c4e71e7bd3deab18a6ebaa8ee20b9475..c2729c0940fcff77bf066e959a291e4425e85555 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,6 @@ ipkg-* *.o tags -wifimngr +wifixd .configured_* .pkgdir diff --git a/Makefile b/Makefile index 8c3f5783dd28399cb67c8080a86260377fe1c294..b4937eab52e668a683c700433568da8c70a58159 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PROG = wifimngr +PROG = wifixd OBJS = wifimngr.o wps.o wifimngr_nl.o utils.o main.o PROG_CFLAGS = $(CFLAGS) -fstrict-aliasing @@ -8,9 +8,9 @@ PROG_LDFLAGS += -luci -lubus -lubox -ljson-c -lblobmsg_json -lnl-genl-3 -lnl-3 %.o: %.c $(CC) $(PROG_CFLAGS) $(FPIC) -c -o $@ $< -all: wifimngr +all: $(PROG) -wifimngr: $(OBJS) +$(PROG): $(OBJS) $(CC) $(PROG_LDFLAGS) -o $@ $^ clean: