grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / c / makefile
blob43506a30a1ab8a0e1be8ca9b678356c21579a177
1 CFLAGS = -O2 -DBNULL=NULL
3 PURE_FILES = Assign.c Dir.c Copy.c
4 FILES = Info.c
6 PURE_PROGS = $(PURE_FILES:.c=)
7 PROGS = $(FILES:.c=)
9 all: $(PURE_PROGS) $(PROGS)
11 $(PURE_PROGS): %: %.c
12 gcc $(CFLAGS) $< -o $@ -nostartfiles -lrom
13 Protect $@ +p
15 $(PROGS): %: %.c
16 gcc $(CFLAGS) $< -o $@
18 Eval.o: evalParser.tab.c
20 evalParser.tab.c: evalParser.y
21 $(YACC) $< -o $@
23 clean:
24 Delete $(PURE_PROGS) $(PROGS)
26 install:
27 Copy $(PURE_PROGS) $(PROGS) TO C: