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:31 +0200
commite90a213afd92e8bd5db19629c181c0fd572faf42 (patch)
tree79cefe9439504d7eac8ba431d972028802fdda0d /Makefile
downloadbraces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.gz
braces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.bz2
braces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.xz
First commit1.0
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2bff896
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+OBJ =\
+ braces.o
+
+HDR =\
+ arg.h
+
+
+ALL_CPPFLAGS = $(CPPFLAGS) $(FUZZED_CPPFLAGS)
+ALL_CFLAGS = $(CFLAGS) $(FUZZED_CFLAGS)
+ALL_LDFLAGS = $(LDFLAGS) $(FUZZED_LDFLAGS)
+
+
+all: braces
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(ALL_CFLAGS) $(GOV_CFLAGS) $(ALL_CPPFLAGS) $(GOV_CPPFLAGS)
+
+braces: $(OBJ)
+ $(CC) -o $@ $(OBJ) $(ALL_LDFLAGS) $(COV_LDFLAGS)
+
+install: braces
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
+ cp -- braces "$(DESTDIR)$(PREFIX)/bin/"
+ cp -- braces.1 "$(DESTDIR)$(MANPREFIX)/man1/"
+
+uninstall:
+ -rm -f -- "$(DESTDIR)$(PREFIX)/bin/braces"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/braces.1"
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch
+ -rm -f -- *.gcov *.gcno *.gcda *.t *.to *.f *.fo
+ -rm -f -- braces
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all install uninstall clean