You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alee-forth/Makefile

33 lines
764 B
Makefile

2 years ago
CXXFLAGS += -std=c++17 -g3 -ggdb -O0 \
-Wall -Wextra -pedantic -Werror \
-fno-exceptions -fno-rtti #-fstack-usage
2 years ago
CXXFILES := corewords.cpp dictionary.cpp parser.cpp state.cpp
2 years ago
OBJFILES := $(subst .cpp,.o,$(CXXFILES))
LIBFILE := libalee.a
2 years ago
all: alee
msp430: CXX := msp430-elf32-g++
msp430: AR := msp430-elf32-ar
msp430: CXXFLAGS += -Os -mmcu=msp430g2553 -ffunction-sections -fdata-sections -DMEMDICTSIZE=200
msp430: LDFLAGS += -L/opt/msp430-elf32/include -Wl,-gc-sections
msp430: alee-msp430
2 years ago
small: CXXFLAGS += -Os
small: alee
fast: CXXFLAGS += -O3 -march=native -mtune=native
fast: alee
alee: $(LIBFILE)
alee-msp430: $(LIBFILE)
$(LIBFILE): $(OBJFILES)
$(AR) cr $@ $(OBJFILES)
2 years ago
clean:
rm -f alee alee-msp430 $(LIBFILE) $(OBJFILES)
2 years ago