From 45223b992bcfdbb5f0b475b42d0de0cb54c29199 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Jul 2023 20:30:24 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index afde4e8..e0dcf97 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-70-g09d2