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/petit_fatfs | |
| 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/petit_fatfs')
| -rw-r--r-- | Libs/petit_fatfs/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Libs/petit_fatfs/Makefile b/Libs/petit_fatfs/Makefile index 83ddb2d..07aaadc 100644 --- a/Libs/petit_fatfs/Makefile +++ b/Libs/petit_fatfs/Makefile @@ -11,12 +11,14 @@ LIBNAME=lib$(PROJECT).a OBJECTS=mmc.o petit_fatfs.o pff.o -default: $(OBJECTS) - avr-ar rcs $(LIBNAME) $^ +default: $(LIBNAME) + cp *.h $(INCLUDE_FOLDER)/$(PROJECT) + +$(LIBNAME): $(OBJECTS) + avr-ar rcs $@ $^ mkdir -p $(INCLUDE_FOLDER)/$(PROJECT) - cp *.h $(INCLUDE_FOLDER)//$(PROJECT) - mv $(LIBNAME) $(LIBS_FOLDER) - avr-size $(LIBS_FOLDER)/$(LIBNAME) + mv $@ $(LIBS_FOLDER) + avr-size $(LIBS_FOLDER)/$@ %.o: %.cpp $(CXX) $< -o $@ $(DEFINE) $(INCLUDE) $(CC_FLAGS) @@ -27,3 +29,5 @@ default: $(OBJECTS) clean: rm -f $(OBJECTS) rm -f $(LIBS_FOLDER)/$(LIBNAME) + +.PHONY: default clean |
