summaryrefslogtreecommitdiff
path: root/check/Makefile
blob: 67b3f91456ee02b4f716ccb37366eb436e11a516 (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
.POSIX:

# This Makefile was generated by maje
# See https://gitlab.com/jkaivo/maje/ for more information
# Do not edit this Makefile by hand

CC=c99
LD=$(CC)
CFLAGS=-Wall -Wextra -Wpedantic -Werror -g
LDFLAGS=
LDLIBS=
SRCDIR=.
OBJDIR=.
BINDIR=$(OBJDIR)

all: $(BINDIR)/check

clean:
	rm -f $(BINDIR)/check $(OBJDIR)/*.o

$(BINDIR)/check: $(OBJDIR)/parse.o
$(OBJDIR)/parse.o: $(SRCDIR)/check.h
$(OBJDIR)/parse.o: $(SRCDIR)/parse.c
	$(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/parse.c

$(BINDIR)/check: $(OBJDIR)/check.o
$(OBJDIR)/check.o: $(SRCDIR)/check.h
$(OBJDIR)/check.o: $(SRCDIR)/check.c
	$(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/check.c

$(BINDIR)/check:
	$(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS)