Mercurial > hg > index.cgi
annotate lwbasic/attic/rules.make @ 212:b0d53e2f3f53
Make --6309/--6809 work properly
Fixed an inverted test that checked for 6809/6309 mode incorrectly. This
also fixes the fact that 6309 mode was not the default as per the
documentation.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sat, 09 Jun 2012 23:17:43 -0600 |
parents | cca933d32298 |
children |
rev | line source |
---|---|
22 | 1 dirname := $(dir $(lastword $(MAKEFILE_LIST))) |
2 lwbasic_dir := $(dirname) | |
3 | |
30
bcd532a90e53
Renamed "compiler" to "parser" for more consistent terminology
lost@l-w.ca
parents:
29
diff
changeset
|
4 lwbasic_lsrcs := main.c input.c parser.c lexer.c emit.c symtab.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) |