summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index faf3d3b..0294f48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,34 @@
.POSIX:
+
# This Makefile was generated by maje
# See https://gitlab.com/jkaivo/maje/ for more information
# Do not edit this Makefile by hand
+
default: all
+
CC=c99
CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
+
all: maje
+
clean:
rm -f maje *.o
-make.o: make.c
+
maje: make.o
-sources.o: sources.c
+make.o: make.c
+ $(CC) $(CFLAGS) -c make.c
+
maje: sources.o
-main.o: main.c
+sources.o: sources.c
+ $(CC) $(CFLAGS) -c sources.c
+
maje: main.o
-maje.o: maje.c
+main.o: main.c
+ $(CC) $(CFLAGS) -c main.c
+
maje: maje.o
+maje.o: maje.c
+ $(CC) $(CFLAGS) -c maje.c
+
maje:
$(CC) -o $@ *.o