Fixed Makefile

master
MadcowOG 2023-02-22 22:19:14 -08:00
parent 6a5ed5eab9
commit 8528cd7f88
1 changed files with 2 additions and 6 deletions

View File

@ -28,11 +28,7 @@ srcdir := src
all: dwl-bar all: dwl-bar
dwl-bar: $(srcdir)/xdg-shell-protocol.o $(srcdir)/xdg-output-unstable-v1-protocol.o $(srcdir)/wlr-layer-shell-unstable-v1-protocol.o $(srcdir)/main.c $(srcdir)/bar.c $(srcdir)/shm.c $(srcdir)/config.h dwl-bar: $(srcdir)/xdg-shell-protocol.o $(srcdir)/xdg-output-unstable-v1-protocol.o $(srcdir)/wlr-layer-shell-unstable-v1-protocol.o $(srcdir)/main.c $(srcdir)/bar.c $(srcdir)/shm.c $(srcdir)/config.h
$(CC) $^ $(BARLIBS) $(BARCFLAGS) -o $@ $(CC) $^ $(BARLIBS) $(BARCFLAGS) -o $@
$(srcdir)/xdg-shell-protocol.o: $(srcdir)/xdg-shell-protocol.c $(srcdir)/xdg-shell-protocol.h $(srcdir)/%.o: $(srcdir)/%.c $(srcdir)/%.h
$(CC) -c $< $(BARLIBS) $(BARCFLAGS) -o $@
$(srcdir)/xdg-output-unstable-v1-protocol.o: $(srcdir)/xdg-output-unstable-v1-protocol.c $(srcdir)/xdg-output-unstable-v1-protocol.h
$(CC) -c $< $(BARLIBS) $(BARCFLAGS) -o $@
$(srcdir)/wlr-layer-shell-unstable-v1-protocol.o: $(srcdir)/wlr-layer-shell-unstable-v1-protocol.c $(srcdir)/wlr-layer-shell-unstable-v1-protocol.h
$(CC) -c $< $(BARLIBS) $(BARCFLAGS) -o $@ $(CC) -c $< $(BARLIBS) $(BARCFLAGS) -o $@
$(srcdir)/xdg-shell-protocol.h: $(srcdir)/xdg-shell-protocol.h:
@ -57,7 +53,7 @@ $(srcdir)/wlr-layer-shell-unstable-v1-protocol.c:
protocols/wlr-layer-shell-unstable-v1.xml $@ protocols/wlr-layer-shell-unstable-v1.xml $@
$(srcdir)/config.h: $(srcdir)/config.h:
cp config.def.h $@ cp src/config.def.h $@
clean: clean:
rm -f dwl-bar src/*.o src/*-protocol.* rm -f dwl-bar src/*.o src/*-protocol.*