aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-03-08 19:31:33 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-03-08 19:31:33 -0500
commit1960aa8773e51a76f0a5a653c8a4eb4fbef5e4ba (patch)
treef6bc17772726acfa94c3edd32ba6fec5fd0b1e8f /Makefile
parent685accbcba29ccd93d4bf398b0e39a8ec3f25c9a (diff)
update readme; make msp430 standalone
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 60b4922..86df6a6 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ msp430: AR := msp430-elf32-ar
msp430: CXXFLAGS += -Os -mmcu=msp430g2553 -ffunction-sections -fdata-sections
msp430: CXXFLAGS += -DMEMDICTSIZE=200
msp430: LDFLAGS += -L/opt/msp430-elf32/include -Wl,-gc-sections
-msp430: alee-msp430
+msp430: clean-lib alee-msp430
small: CXXFLAGS += -Os
small: alee
@@ -37,9 +37,12 @@ core.fth.h: alee.dat
alee.dat: alee core.fth
echo "2 sys" | ./alee core.fth
-clean:
+clean: clean-lib
rm -f alee alee-msp430 alee-standalone
- rm -f $(LIBFILE) $(OBJFILES) alee.dat core.fth.h
+ rm -f alee.dat core.fth.h
-.PHONY: all msp430 small fast standalone clean
+clean-lib:
+ rm -f $(LIBFILE) $(OBJFILES)
+
+.PHONY: all msp430 small fast standalone clean clean-lib