diff Makefile @ 22:7c35fa8dbc91

Added initial framework for lwbasic
author lost@l-w.ca
date Sat, 22 Jan 2011 21:01:03 -0700
parents f4df3bd4b85f
children 87590f43e76d
line wrap: on
line diff
--- a/Makefile	Sat Jan 22 18:28:07 2011 -0700
+++ b/Makefile	Sat Jan 22 21:01:03 2011 -0700
@@ -28,7 +28,7 @@
 .PHONY: all
 all: $(MAIN_TARGETS)
 
-subdirs := lwasm lwlink lwar lwlib docs
+subdirs := lwasm lwlink lwar lwlib lwbasic docs
 
 -include $(subdirs:=/rules.make)
 
@@ -50,6 +50,9 @@
 lwar: lwar/lwar$(PROGSUFFIX)
 lwobjdump: lwlink/lwobjdump$(PROGSUFFIX)
 
+.PHONY: lwbasic
+lwbasic: lwbasic/lwbasic$(PROGSUFFIX)
+
 lwasm/lwasm$(PROGSUFFIX): $(lwasm_objs) lwlib lwasm/rules.make
 	@echo Linking $@
 	@$(CC) -o $@ $(lwasm_objs) $(LDFLAGS)
@@ -98,7 +101,7 @@
 	
 
 .PHONY: clean
-clean:
+clean: $(cleantargs)
 	@echo "Cleaning up"
 	@rm -f lwlib/liblw.a lwasm/lwasm$(PROGSUFFIX) lwlink/lwlink$(PROGSUFFIX) lwlink/lwobjdump$(PROGSUFFIX) lwar/lwar$(PROGSUFFIX)
 	@rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs)
@@ -106,7 +109,7 @@
 	@rm -f */*.exe
 
 .PHONY: realclean
-realclean: clean
+realclean: clean $(realcleantargs)
 	@echo "Cleaning up even more"
 	@rm -f $(lwasm_deps) $(lwlink_deps) $(lwar_deps) $(lwlib_deps) $(lwobjdump_deps)
 	@rm -f docs/manual/*.html docs/manual/*.pdf