From 786dccd2bc0946d48b8a2758ef2c607678bc8dd9 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Fri, 8 Sep 2017 18:39:22 +0200 Subject: Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO --- Libs/libgamebuino/Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Libs/libgamebuino') 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 -- cgit v1.2.3