Makefile: slightly simplify
This commit is contained in:
parent
1416d6be6c
commit
98669f8c31
1 changed files with 5 additions and 10 deletions
11
Makefile
11
Makefile
|
@ -10,8 +10,8 @@ PKGS = wayland-client fcft pixman-1
|
|||
INCS != $(PKG_CONFIG) --cflags $(PKGS)
|
||||
LIBS != $(PKG_CONFIG) --libs $(PKGS)
|
||||
|
||||
DAMCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE $(CPPFLAGS)
|
||||
DAMCFLAGS = -pedantic -Wall $(INCS) $(DAMCPPFLAGS) $(CFLAGS)
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE
|
||||
CFLAGS += -pedantic -Wall $(INCS)
|
||||
LDLIBS = $(LIBS)
|
||||
|
||||
PROTO = xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h \
|
||||
|
@ -21,16 +21,11 @@ OBJ = $(SRC:.c=.o)
|
|||
|
||||
all: dam
|
||||
|
||||
.c.o:
|
||||
$(CC) -o $@ $(DAMCFLAGS) -c $<
|
||||
|
||||
config.h:
|
||||
cp config.def.h $@
|
||||
|
||||
$(OBJ): config.h $(PROTO)
|
||||
|
||||
dam: $(OBJ)
|
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
||||
$(OBJ): config.h $(PROTO)
|
||||
|
||||
WAYLAND_SCANNER != $(PKG_CONFIG) --variable=wayland_scanner wayland-scanner
|
||||
WAYLAND_PROTOCOLS != $(PKG_CONFIG) --variable=pkgdatadir wayland-protocols
|
||||
|
|
Loading…
Add table
Reference in a new issue