Mercurial > hg > index.cgi
view 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 |
line wrap: on
line source
dirname := $(dir $(lastword $(MAKEFILE_LIST))) lwbasic_dir := $(dirname) lwbasic_lsrcs := main.c input.c compiler.c lexer.c emit.c lwbasic_srcs := $(addprefix $(dirname),$(lwbasic_lsrcs)) lwbasic_objs := $(lwbasic_srcs:.c=.o) lwbasic_deps := $(lwbasic_srcs:.c=.d) $(lwbasic_dir)lwbasic$(PROGSUFFIX): $(lwbasic_objs) lwlib $(lwbasic_dir)rules.make @echo "Linking $@" @$(CC) -o $@ $(lwbasic_objs) $(LDFLAGS) cleantargs := $(cleantargs) lwbasicclean realcleantargs := $(realcleantargs) lwbasicrealclean .PHONY: lwbasicclean lwbasicrealclean lwbasicrealclean: @echo "Really cleaning up lwbasic" @cd $(lwbasic_dir) && rm -f *.d lwbasicclean: @echo "Cleaning up lwbasic" @cd $(lwbasic_dir) && rm -f *.o *.exe lwbasic -include $(lwbasic_deps)