aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-23 20:53:27 +0200
committerMattias Andrée <m@maandree.se>2026-05-23 21:09:19 +0200
commit41305ac7747516f86d03d0b750816c02e624ac4c (patch)
tree152c00464676b95fdbb60ed29dd6526bbaed93cf /Makefile
downloadsemicolons-1.0.tar.gz
semicolons-1.0.tar.bz2
semicolons-1.0.tar.xz
First commit1.0
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..68831a2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+OBJ =\
+ semicolons.o
+
+HDR =\
+ arg.h
+
+
+ALL_CPPFLAGS = $(CPPFLAGS) $(FUZZED_CPPFLAGS)
+ALL_CFLAGS = $(CFLAGS) $(FUZZED_CFLAGS)
+ALL_LDFLAGS = $(LDFLAGS) $(FUZZED_LDFLAGS)
+
+
+all: semicolons
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(ALL_CFLAGS) $(GOV_CFLAGS) $(ALL_CPPFLAGS) $(GOV_CPPFLAGS)
+
+semicolons: $(OBJ)
+ $(CC) -o $@ $(OBJ) $(ALL_LDFLAGS) $(COV_LDFLAGS)
+
+install: semicolons
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
+ cp -- semicolons "$(DESTDIR)$(PREFIX)/bin/"
+ cp -- semicolons.1 "$(DESTDIR)$(MANPREFIX)/man1/"
+
+uninstall:
+ -rm -f -- "$(DESTDIR)$(PREFIX)/bin/semicolons"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/semicolons.1"
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch
+ -rm -f -- *.gcov *.gcno *.gcda *.t *.to *.f *.fo
+ -rm -f -- semicolons
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all install uninstall clean