aboutsummaryrefslogtreecommitdiff
blob: 1f3a569442d3c97922637f324933ec9723133ba9 (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
CC=gcc
CFLAGS=-g -Wall

PROGRAMS=test-lexing test-parsing obfuscate

HEADERS=token.h parse.h lib.h symbol.h scope.h expression.h target.h

COMMON=	parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
	expression.o show-parse.o evaluate.o

all: $(PROGRAMS)

test-lexing: test-lexing.o $(COMMON)
	gcc -o $@ $< $(COMMON)

test-parsing: test-parsing.o $(COMMON)
	gcc -o $@ $< $(COMMON)

obfuscate: obfuscate.o $(COMMON)
	gcc -o $@ $< $(COMMON)

evaluate.o: $(HEADERS)
expression.o: $(HEADERS)
lib.o: $(HEADERS)
parse.o: $(HEADERS)
pre-process.o: $(HEADERS)
scope.o: $(HEADERS)
show-parse.o: $(HEADERS)
symbol.o: $(HEADERS)
test-lexing.o: $(HEADERS)
test-parsing.o: $(HEADERS)
tokenize.o: $(HEADERS)

clean:
	rm -f *.[oasi] core core.[0-9]* $(PROGRAMS)