Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (46 sloc) 0.93 kB
05caddc @Botje Import code from internal repository
Botje authored
1 all: build schemeken
2
3 SOURCES= \
4 Slip/SlipCompile.c \
5 Slip/SlipCache.c \
6 Slip/SlipDictionary.c \
7 Slip/SlipEnvironment.c \
8 Slip/SlipEvaluate.c \
9 Slip/SlipGrammar.c \
10 Slip/SlipMain.c \
11 Slip/SlipMemory.c \
12 Slip/SlipNative.c \
13 Slip/SlipPool.c \
14 Slip/SlipPrint.c \
15 Slip/SlipRead.c \
16 Slip/SlipScan.c \
17 Slip/SlipStack.c \
18 Slip/SlipThread.c \
19 Slip/SlipPersist.c \
20 Slip/SlipKen.c \
21 Ken/ken.c \
22 Ken/kencom.c \
23 Ken/kencrc.c \
24 Ken/kenpat.c \
25 Ken/kenvar.c
26
795944d @Botje Synchronize with upstream, support Go-Back-N
Botje authored
27 ifdef GOBACKN
28 SOURCES += Ken/kenext_gbn.c
29 else
30 SOURCES += Ken/kenext_orig.c
31 endif
32
05caddc @Botje Import code from internal repository
Botje authored
33 DEBUG_FLAGS=-g
34
35 CFLAGS=$(DEBUG_FLAGS) -I Ken -I Slip
36 LDFLAGS=-Xlinker -no_pie
37
38 CFLAGS+=-std=gnu99
39 OBJECTS=$(addprefix build/,$(notdir $(SOURCES:.c=.o)))
40
41 build/%.o: Slip/%.c
42 gcc -c -o $@ $(CFLAGS) $^
43
44 build/%.o: Ken/%.c
45 gcc -c -o $@ $(CFLAGS) $^
46
47 build:
48 mkdir build build/Slip build/Ken
49
50 schemeken: $(OBJECTS)
51 gcc $(DEBUG_FLAGS) $(LDFLAGS) -o $@ $^
52
53 clean:
54 -rm -r build
55 -rm schemeken
795944d @Botje Synchronize with upstream, support Go-Back-N
Botje authored
56
57 .PHONY: all
Something went wrong with that request. Please try again.