summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0294f48c5db105729f23522a93b04583a671ccc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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

maje: make.o
make.o: make.c
	$(CC) $(CFLAGS) -c make.c

maje: sources.o
sources.o: sources.c
	$(CC) $(CFLAGS) -c sources.c

maje: main.o
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