diff options
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | config.mk | 6 |
2 files changed, 15 insertions, 3 deletions
@@ -3,7 +3,17 @@ CONFIGFILE = config.mk include $(CONFIGFILE) +OBJ = xcman.o +HDR = + all: xcman +$(OBJ): $(HDR) + +xcman: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) install: xcman mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" @@ -22,6 +32,6 @@ clean: -rm -f -- xcman .SUFFIXES: -.SUFFIXES: .c +.SUFFIXES: .c .o .PHONY: all install uninstall clean @@ -1,6 +1,8 @@ -PREFIX = /usr/local +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man +CC = c99 + CPPFLAGS = -CFLAGS = -std=c99 -Wall -Wextra $(CPPFLAGS) +CFLAGS = -Wall -Wextra LDFLAGS = -lXdamage -lXfixes -lXcomposite -lXrender -lX11 |