mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
Fix AUR pkgbuild
This commit is contained in:
parent
161253462d
commit
2ee2749de7
17
src/Makefile
17
src/Makefile
@ -20,19 +20,26 @@ BUILT_SRC = resources.c
|
|||||||
_OBJ = main.o ui.o h_prop.o util.o read_config.o $(BUILT_SRC:.c=.o)
|
_OBJ = main.o ui.o h_prop.o util.o read_config.o $(BUILT_SRC:.c=.o)
|
||||||
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
||||||
|
|
||||||
all: resources.c $(ODIR)/wihotspot-gui
|
# Determine this makefile's path.
|
||||||
|
# Be sure to place this BEFORE `include` directives, if any.
|
||||||
|
THIS_FILE := $(lastword $(MAKEFILE_LIST))
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
all: resources.c
|
||||||
|
|
||||||
resources.c: ui/glade/wifih.gresource.xml ui/glade/wifih.ui
|
resources.c: ui/glade/wifih.gresource.xml ui/glade/wifih.ui
|
||||||
$(GLIB_COMPILE_RESOURCES) ui/glade/wifih.gresource.xml --target=ui/$@ --sourcedir=ui/glade --generate-source
|
$(GLIB_COMPILE_RESOURCES) ui/glade/wifih.gresource.xml --target=ui/$@ --sourcedir=ui/glade --generate-source
|
||||||
|
@$(MAKE) -f $(THIS_FILE) wihotspot-gui
|
||||||
|
|
||||||
$(ODIR)/%.o: ui/%.c
|
$(ODIR)/%.o: ui/%.c
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
$(ODIR)/%.o: ui/%.cpp
|
$(ODIR)/%.o: ui/%.cpp
|
||||||
g++ -c -o $@ $<
|
g++ -c -o $@ $<
|
||||||
|
|
||||||
$(ODIR)/wihotspot-gui: $(OBJ)
|
wihotspot-gui: $(OBJ)
|
||||||
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
$(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS)
|
||||||
|
|
||||||
install: $(ODIR)/wihotspot-gui
|
install: $(ODIR)/wihotspot-gui
|
||||||
mkdir -p $(DESTDIR)$(APP_DIR)
|
mkdir -p $(DESTDIR)$(APP_DIR)
|
||||||
@ -54,8 +61,6 @@ clean-old:
|
|||||||
rm -f $(DESTDIR)/usr/bin/wihotspot_gui
|
rm -f $(DESTDIR)/usr/bin/wihotspot_gui
|
||||||
rm -f $(DESTDIR)/usr/bin/wihotspot
|
rm -f $(DESTDIR)/usr/bin/wihotspot
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(ODIR)/*.o
|
rm -f $(ODIR)/*.o
|
||||||
rm -f ui/$(BUILT_SRC)
|
rm -f ui/$(BUILT_SRC)
|
||||||
|
Loading…
Reference in New Issue
Block a user