From e7a5b19c0ba06e12b0137a7ce5e65a15135d9977 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 2 Dec 2016 12:23:24 +0100 Subject: Initial commit --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9aa9a59 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +include config.mk + +MAIN=dwmclock +SRC=dwmclock.c +OBJ=$(SRC:.c=.o) + +all: $(SRC) $(MAIN) + +$(MAIN): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) + +.c.o: + $(CC) -c $(CFLAGS) $< -o $@ + +clean: + -rm -f $(MAIN) $(OBJ) + +install: $(MAIN) + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp $(MAIN) $(DESTDIR)$(PREFIX)/bin/$(MAIN) + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(MAIN) + +.PHONY: all clean install uninstall -- cgit