summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-03-22 20:12:21 -0400
committerJakob Kaivo <jkk@ung.org>2020-03-22 20:12:21 -0400
commitb7a7d8d9e2ff9d80957a3bdd59b5edc098d13ed5 (patch)
tree2d05934415f9694c28860f52807629ea5627f947
parent0c77d8d0e691c446a6bdcb9fa3dcfe4736587fa4 (diff)
replace with maje-generated MakefileHEADmaster
-rw-r--r--Makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index f8beb73..fff2469 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,28 @@
.POSIX:
-.SUFFIXES: .cat .msg
+# This Makefile was generated by maje
+# See https://gitlab.com/jkaivo/maje/ for more information
+# Do not edit this Makefile by hand
default: all
-CFLAGS=-g -Wall -Wextra -Wpedantic -Werror
-UTILITY=file
-SOURCES=file.c magic.c
-HEADERS=file.h
-OBJECTS=file.o magic.o
-L10N=
-all: $(UTILITY) $(L10N)
+CC=c99
+LD=$(CC)
+CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
+LDFLAGS=
-$(UTILITY): $(OBJECTS) $(HEADERS)
+all: file
-.msg.cat:
- gencat $@ $<
+clean:
+ rm -f file *.o
-.c.cat:
- sed -ne '/^\/\*\*cat/,/cat\*\*\//p;' $< | grep -v ^/ | grep -v ^\* | gencat $@ -
+file: file.o
+file.o: file.c
+ $(CC) $(CFLAGS) -c file.c
-clean:
- rm -f *.o $(L10N) $(UTILITY)
+file: magic.o
+magic.o: magic.c
+ $(CC) $(CFLAGS) -c magic.c
+
+file:
+ $(LD) $(LDFLAGS) -o $@ *.o