diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-08 18:39:22 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-09-08 18:39:22 +0200 |
| commit | 786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (patch) | |
| tree | 47952d77e5646a993671134b50c16f32ebe35b1c /Libs/libgamebuino | |
| parent | 72d350a37aa67936361ac8a374472b7e0227da61 (diff) | |
| download | pocketempires-786dccd2bc0946d48b8a2758ef2c607678bc8dd9.tar.gz | |
Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO
Diffstat (limited to 'Libs/libgamebuino')
| -rw-r--r-- | Libs/libgamebuino/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Libs/libgamebuino/Makefile b/Libs/libgamebuino/Makefile index e1facfb..b7aa854 100644 --- a/Libs/libgamebuino/Makefile +++ b/Libs/libgamebuino/Makefile @@ -12,12 +12,14 @@ CFLAGS=-mmcu=$(MCU) $(CPU_SPEED) -Wall -Os -c -ffunction-sections -fdata-section OBJECTS= Backlight.o Battery.o Buttons.o Display.o font3x3.o \ font3x5.o font5x7.o Gamebuino.o settings.o Sound.o -default: $(OBJECTS) - avr-ar rcs $(LIBNAME).a $^ - mkdir -p $(INCLUDE_FOLDER)/$(PROJECT) +default: $(LIBNAME) cp *.h $(INCLUDE_FOLDER)/$(PROJECT) - cp settings.c $(INCLUDE_FOLDER)/$(PROJECT) - mv $(LIBNAME).a $(LIBS_FOLDER) + +$(LIBNAME): $(OBJECTS) + avr-ar rcs $@ $^ + mkdir -p $(INCLUDE_FOLDER)/$(PROJECT) + mv $@ $(LIBS_FOLDER) + avr-size $(LIBS_FOLDER)/$@ %.o: %.cpp $(CXX) $< -o $@ $(INCLUDE) $(DEFINE) $(CC_FLAGS) @@ -25,7 +27,8 @@ default: $(OBJECTS) %.o: %.c $(CC) $< -o $@ $(INCLUDE) $(DEFINE) $(CC_FLAGS) - clean: - rm -f *.o - rm -f $(LIBS_FOLDER)/$(LIBNAME).a + rm -f $(OBJECTS) + rm -f $(LIBS_FOLDER)/$(LIBNAME) + +.PHONY: default clean |
