aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
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