Add Linux GNU Makefile
This commit is contained in:
parent
3765d5af50
commit
5c8840ab07
1 changed files with 21 additions and 0 deletions
21
GNUmakefile
Normal file
21
GNUmakefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
PREFIX ?= /usr/local
|
||||
PKG_CONFIG ?= pkg-config
|
||||
LIBS = x11 xft xrandr libbsd-overlay
|
||||
override CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBS))
|
||||
override LDFLAGS += $(shell $(PKG_CONFIG) --libs $(LIBS))
|
||||
|
||||
PROG = cwm
|
||||
OBJS = calmwm.o client.o conf.o group.o kbfunc.o menu.o parse.o screen.o search.o util.o \
|
||||
xevents.o xmalloc.o xutil.o
|
||||
|
||||
.PHONY: all
|
||||
all: $(PROG)
|
||||
|
||||
$(PROG): $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(OBJS)
|
||||
|
||||
.PRECIOUS: parse.c
|
||||
Loading…
Add table
Add a link
Reference in a new issue