diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-16 16:51:46 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-16 16:51:46 +0200 |
| commit | 4f162f357e0ef260b714a51e5fbd0daecb12390c (patch) | |
| tree | 9c22ed1f6280ab52df9c1e27b670e7234153e370 /Makefile | |
| download | sumart-4f162f357e0ef260b714a51e5fbd0daecb12390c.tar.gz sumart-4f162f357e0ef260b714a51e5fbd0daecb12390c.tar.bz2 sumart-4f162f357e0ef260b714a51e5fbd0daecb12390c.tar.xz | |
First commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc89666 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +OBJ =\ + sumart.o + +HDR = + +all: sumart +$(OBJ): $(HDR) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +sumart: $(OBJ) + $(CC) -o $@ $(OBJ) $(LDFLAGS) + +install: sumart + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- sumart "$(DESTDIR)$(PREFIX)/bin/" + cp -- sumart.1 "$(DESTDIR)$(MANPREFIX)/man1/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/sumart" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/sumart.1" + +clean: + -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda + -rm -f -- sumart + +.SUFFIXES: +.SUFFIXES: .o .c + +.PHONY: all install uninstall clean |
