-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 653 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (23 loc) · 653 Bytes
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
# define the library you're using for READLINE by selecting the
# appropriate two lines
# for GNU Readline
#READLINE=-lreadline
#READLINE_DEFS=-DREADLINE
# for linenoise
#READLINE=linenoise.o
#READLINE_DEFS=-DLINENOISE
# for neither, just leave both undefined
OPTS=-g -Og
CC=gcc
CFLAGS=$(OPTS) $(READLINE_DEFS) -Wall
OBJS=main.o tinyscript.o tinyscript_lib.o
tstest: $(OBJS) $(READLINE)
$(CC) $(CFLAGS) -o tstest $(OBJS) $(READLINE)
clean:
rm -f *.o *.elf
test: tstest
(cd Test; ./runtests.sh)
fibo.elf: fibo.c fibo.h tinyscript.c
propeller-elf-gcc -o fibo.elf -mlmm -Os fibo.c fibo.h tinyscript.c
fibo.h: fibo.ts
xxd -i fibo.ts > fibo.h