Symlink md-fpp.h during build time

This commit is contained in:
simon.kagstrom 2009-05-12 20:18:03 +00:00
parent e00db77854
commit e2e44ae2b1
3 changed files with 12 additions and 5 deletions

View File

@ -44,7 +44,7 @@ all: uae-host.elf
# How to delete the intermediate files.
clean:
@echo Cleaning $(OBJ_DIR)
@rm -rf $(OBJS) $(OBJ_DIR) src/machdep src/target.h $(SYMLINKS)
@rm -rf $(OBJS) $(OBJ_DIR) src/machdep src/target.h src/md-fpp.h $(SYMLINKS)
$(OBJ_DIR):
install -d $@
@ -84,6 +84,10 @@ src/target.h:
rm -f $@
cd src && ln -s targets/t-unix.h target.h
src/md-fpp.h:
rm -f $@
cd src && ln -s include/fpp-ieee.h md-fpp.h
%.h: %.h.wii
cp $< $@
@ -117,7 +121,7 @@ CFLAGS := $(COMMON_FLAGS) $(INCLUDES) $(DEFINES)
LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -lz -lSDL_ttf -lSDL -lfreetype -lm
# How to link an ELF.
uae-host.elf: $(SYMLINKS) src/target.h src/sysconfig.h $(OBJS)
uae-host.elf: $(SYMLINKS) src/target.h src/md-fpp.h src/sysconfig.h $(OBJS)
@echo Linking $@
@-mkdir -p $(dir $@)
g++ -o $@ $(OBJS) $(LDFLAGS)

View File

@ -49,7 +49,7 @@ all: uae.dol
# How to delete the intermediate files.
clean:
@echo Cleaning $(OBJ_DIR)
@rm -rf $(OBJS) $(OBJ_DIR) src/machdep src/target.h $(SYMLINKS)
@rm -rf $(OBJS) $(OBJ_DIR) src/machdep src/target.h src/md-fpp.h $(SYMLINKS)
$(OBJ_DIR):
install -d $@
@ -89,6 +89,10 @@ src/target.h:
rm -f $@
cd src && ln -s targets/t-wii.h target.h
src/md-fpp.h:
rm -f $@
cd src && ln -s include/fpp-ieee.h md-fpp.h
%.h: %.h.wii
cp $< $@
@ -139,7 +143,7 @@ dist: uae.dol
cd $@ && tar -czf ../uae-bin.tar.gz *
# How to link an ELF.
uae.elf: $(SYMLINKS) src/target.h src/sysconfig.h $(OBJS)
uae.elf: $(SYMLINKS) src/target.h src/md-fpp.h src/sysconfig.h $(OBJS)
@echo Linking $@
@-mkdir -p $(dir $@)
powerpc-gekko-g++ -o $@ $(OBJS) $(LDFLAGS)

View File

@ -1 +0,0 @@
.././src/include/fpp-ieee.h