summaryrefslogtreecommitdiff
path: root/Libs/tinyFAT/Makefile
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-09-08 18:39:22 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-09-08 18:39:22 +0200
commit786dccd2bc0946d48b8a2758ef2c607678bc8dd9 (patch)
tree47952d77e5646a993671134b50c16f32ebe35b1c /Libs/tinyFAT/Makefile
parent72d350a37aa67936361ac8a374472b7e0227da61 (diff)
downloadpocketempires-786dccd2bc0946d48b8a2758ef2c607678bc8dd9.tar.gz
Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO
Diffstat (limited to 'Libs/tinyFAT/Makefile')
-rw-r--r--Libs/tinyFAT/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Libs/tinyFAT/Makefile b/Libs/tinyFAT/Makefile
index 2640178..df0650b 100644
--- a/Libs/tinyFAT/Makefile
+++ b/Libs/tinyFAT/Makefile
@@ -10,12 +10,14 @@ LIBNAME=lib$(PROJECT).a
OBJECTS=mmc.o tinyFAT.o
-default: $(OBJECTS)
- avr-ar rcs $(LIBNAME) $^
- mkdir -p $(INCLUDE_FOLDER)/$(PROJECT)
+default: $(LIBNAME)
cp *.h $(INCLUDE_FOLDER)/$(PROJECT)
- mv $(LIBNAME) $(LIBS_FOLDER)
- avr-size $(LIBS_FOLDER)/$(LIBNAME)
+
+$(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)
@@ -26,3 +28,5 @@ default: $(OBJECTS)
clean:
rm -f $(OBJECTS)
rm -f $(LIBS_FOLDER)/$(LIBNAME)
+
+.PHONY: default clean