Makefile (488B)
1 PREFIX = /usr/local 2 #CPPFLAGS = -DDEBUG 3 CFLAGS = -I/usr/X11R6/include 4 LDFLAGS = -L/usr/X11R6/lib 5 LDLIBS = -lxkbfile -lX11 6 OBJ = xkblayout.o 7 BIN = xkblayout 8 9 all: $(BIN) 10 11 clean: 12 rm -f $(OBJ) $(BIN) 13 14 install: all 15 mkdir -p $(DESTDIR)$(PREFIX)/bin 16 cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin 17 18 uninstall: 19 rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) 20 21 .PHONY: all clean install uninstall 22 23 .SUFFIXES: .c .o 24 25 .c.o: 26 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< 27 28 $(BIN): $(OBJ) 29 $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LDLIBS)