diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..599dfdf --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + gcmap.o + +HDR = + +all: gcmap +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) $(CFLAGS_GTK2) + +gcmap: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LDFLAGS_GTK2) + +install: gcmap + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- gcmap "$(DESTDIR)$(PREFIX)/bin/" + cp -- gcmap.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/gcmap" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/gcmap.1" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- gcmap + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean |
