-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile.linux-x64
57 lines (41 loc) · 2.06 KB
/
makefile.linux-x64
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# The 7800basic Linux compiling makefile. The only difference between this
# and the generic makefile is this forces 64-bit binaries and adds a .Linux.x64
# extension to the binary filenames
ARCH=Linux.x64
LDIR=contrib/${ARCH}
CC=gcc
CFLAGS=-O0 -m64
LEX=lex
LEXFLAGS=-t
all: 7800basic.${ARCH} 7800preprocess.${ARCH} 7800postprocess.${ARCH} 7800filter.${ARCH} 7800optimize.${ARCH} 7800header.${ARCH} 7800sign.${ARCH} 7800makecc2.${ARCH} snip.${ARCH} banksetsymbols.${ARCH} 7800rmtfix.${ARCH} 7800rmt2asm.${ARCH}
7800basic.${ARCH}: 7800bas.c statements.c keywords.c statements.h keywords.h atarivox.h minitar.c minitar.h
${CC} ${CFLAGS} -o 7800basic.${ARCH} 7800bas.c statements.c keywords.c minitar.c -L${LDIR}/lib -I${LDIR}/include -lpng -lz -lm -llzsa
7800postprocess.${ARCH}: postprocess.c
${CC} ${CFLAGS} -o 7800postprocess.${ARCH} postprocess.c
7800filter.${ARCH}: filter.c
${CC} ${CFLAGS} -o 7800filter.${ARCH} filter.c
7800preprocess.${ARCH}: preprocess.lex
${LEX} ${LEXFLAGS}<preprocess.lex>lex.yy.c
${CC} ${CFLAGS} -o 7800preprocess.${ARCH} lex.yy.c
rm -f lex.yy.c
7800optimize.${ARCH}: optimize.lex
${LEX} ${LEXFLAGS} -i<optimize.lex>lex.yy.c
${CC} ${CFLAGS} -o 7800optimize.${ARCH} lex.yy.c
rm -f lex.yy.c
7800header.${ARCH}: 7800header.c
${CC} ${CFLAGS} -o 7800header.${ARCH} 7800header.c
7800sign.${ARCH}: 7800sign.c
${CC} ${CFLAGS} -o 7800sign.${ARCH} 7800sign.c
snip.${ARCH}: snip.c
${CC} ${CFLAGS} -o snip.${ARCH} snip.c
banksetsymbols.${ARCH}: banksetsymbols.c
${CC} ${CFLAGS} -o banksetsymbols.${ARCH} banksetsymbols.c
7800rmtfix.${ARCH}: 7800rmtfix.c
${CC} ${CFLAGS} -o 7800rmtfix.${ARCH} 7800rmtfix.c
7800rmt2asm.${ARCH}: 7800rmt2asm.c
${CC} ${CFLAGS} -o 7800rmt2asm.${ARCH} 7800rmt2asm.c
7800makecc2.${ARCH}: 7800makecc2.c
${CC} ${CFLAGS} -o 7800makecc2.${ARCH} 7800makecc2.c
install: all
clean:
rm -f 7800basic.${ARCH} 7800preprocess.${ARCH} 7800postprocess.${ARCH} 7800optimize.${ARCH} 7800header.${ARCH} 7800sign.${ARCH} banksetsymbols.${ARCH} 7800filter.${ARCH} 7800makecc2.${ARCH} 7800rmtfix.$(ARCH) 7800rmt2asm.${ARCH} lz4raw.${ARCH} snip.${ARCH}