Mercurial > hg > index.cgi
annotate lwbasic/rules.make @ 26:26aa76da75ad
Additional parsing in function/sub; emission of prolog/epilog code
author | lost@l-w.ca |
---|---|
date | Thu, 27 Jan 2011 20:44:57 -0700 |
parents | 87590f43e76d |
children | bc96cd02fbf4 |
rev | line source |
---|---|
22 | 1 dirname := $(dir $(lastword $(MAKEFILE_LIST))) |
2 lwbasic_dir := $(dirname) | |
3 | |
26
26aa76da75ad
Additional parsing in function/sub; emission of prolog/epilog code
lost@l-w.ca
parents:
25
diff
changeset
|
4 lwbasic_lsrcs := main.c input.c compiler.c lexer.c emit.c |
22 | 5 |
6 lwbasic_srcs := $(addprefix $(dirname),$(lwbasic_lsrcs)) | |
7 lwbasic_objs := $(lwbasic_srcs:.c=.o) | |
8 lwbasic_deps := $(lwbasic_srcs:.c=.d) | |
9 | |
10 | |
11 | |
12 $(lwbasic_dir)lwbasic$(PROGSUFFIX): $(lwbasic_objs) lwlib $(lwbasic_dir)rules.make | |
13 @echo "Linking $@" | |
14 @$(CC) -o $@ $(lwbasic_objs) $(LDFLAGS) | |
15 | |
16 cleantargs := $(cleantargs) lwbasicclean | |
17 realcleantargs := $(realcleantargs) lwbasicrealclean | |
18 | |
19 .PHONY: lwbasicclean lwbasicrealclean | |
20 lwbasicrealclean: | |
21 @echo "Really cleaning up lwbasic" | |
22 @cd $(lwbasic_dir) && rm -f *.d | |
23 | |
24 lwbasicclean: | |
25 @echo "Cleaning up lwbasic" | |
26 @cd $(lwbasic_dir) && rm -f *.o *.exe lwbasic | |
27 | |
28 -include $(lwbasic_deps) |