summaryrefslogtreecommitdiff
path: root/Makefile
blob: cb52921e39f11129fc27645230f4c51ec3ab415e (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
35
36
.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
LD=$(CC)
CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
LDFLAGS=

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:
	$(LD) $(LDFLAGS) -o $@ *.o