Makefile.wiz
changeset 10204 d7a20c257421
parent 9954 75f31b13bf4b
child 12130 24142c5073a4
equal deleted inserted replaced
10203:ed1bad553a56 10204:d7a20c257421
     7 CXX = $(WIZSDK)/bin/arm-openwiz-linux-gnu-g++
     7 CXX = $(WIZSDK)/bin/arm-openwiz-linux-gnu-g++
     8 STRIP = $(WIZSDK)/bin/arm-openwiz-linux-gnu-strip
     8 STRIP = $(WIZSDK)/bin/arm-openwiz-linux-gnu-strip
     9 
     9 
    10 CFLAGS  = -Wall -fPIC -I./include -I$(WIZSDK)/include -DWIZ_GLES_LITE
    10 CFLAGS  = -Wall -fPIC -I./include -I$(WIZSDK)/include -DWIZ_GLES_LITE
    11 
    11 
    12 TARGET_STATIC  = libSDL13.a
    12 TARGET_STATIC  = libSDL2.a
    13 TARGET_SHARED  = libSDL13.so
    13 TARGET_SHARED  = libSDL2.so
    14 
    14 
    15 SOURCES = ./src/*.c ./src/audio/*.c ./src/cpuinfo/*.c ./src/events/*.c \
    15 SOURCES = ./src/*.c ./src/audio/*.c ./src/cpuinfo/*.c ./src/events/*.c \
    16 	./src/file/*.c ./src/stdlib/*.c ./src/thread/*.c ./src/timer/*.c ./src/video/*.c \
    16 	./src/file/*.c ./src/stdlib/*.c ./src/thread/*.c ./src/timer/*.c ./src/video/*.c \
    17 	./src/joystick/*.c ./src/haptic/*.c ./src/video/dummy/*.c ./src/audio/disk/*.c \
    17 	./src/joystick/*.c ./src/haptic/*.c ./src/video/dummy/*.c ./src/audio/disk/*.c \
    18 	./src/audio/dummy/*.c ./src/loadso/dlopen/*.c ./src/audio/dsp/*.c \
    18 	./src/audio/dummy/*.c ./src/loadso/dlopen/*.c ./src/audio/dsp/*.c \
    41 clean:
    41 clean:
    42 	rm -f $(TARGET_STATIC) $(TARGET_SHARED)* $(OBJECTS)
    42 	rm -f $(TARGET_STATIC) $(TARGET_SHARED)* $(OBJECTS)
    43 
    43 
    44 install:
    44 install:
    45 	mkdir -p $(WIZSDK)/lib
    45 	mkdir -p $(WIZSDK)/lib
    46 	mkdir -p $(WIZSDK)/include/SDL13
    46 	mkdir -p $(WIZSDK)/include/SDL2
    47 	cp -f $(TARGET_STATIC) $(WIZSDK)/lib
    47 	cp -f $(TARGET_STATIC) $(WIZSDK)/lib
    48 	cp -f $(TARGET_SHARED).0.0.1 $(WIZSDK)/lib
    48 	cp -f $(TARGET_SHARED).0.0.1 $(WIZSDK)/lib
    49 	rm -f $(WIZSDK)/lib/$(TARGET_SHARED).0 $(WIZSDK)/lib/$(TARGET_SHARED)
    49 	rm -f $(WIZSDK)/lib/$(TARGET_SHARED).0 $(WIZSDK)/lib/$(TARGET_SHARED)
    50 	ln -s $(WIZSDK)/lib/$(TARGET_SHARED).0.0.1 $(WIZSDK)/lib/$(TARGET_SHARED).0
    50 	ln -s $(WIZSDK)/lib/$(TARGET_SHARED).0.0.1 $(WIZSDK)/lib/$(TARGET_SHARED).0
    51 	ln -s $(WIZSDK)/lib/$(TARGET_SHARED).0 $(WIZSDK)/lib/$(TARGET_SHARED)
    51 	ln -s $(WIZSDK)/lib/$(TARGET_SHARED).0 $(WIZSDK)/lib/$(TARGET_SHARED)
    55 	rm -f ../../toolchain/libs/$(TARGET_SHARED).0 ../../toolchain/libs/$(TARGET_SHARED)
    55 	rm -f ../../toolchain/libs/$(TARGET_SHARED).0 ../../toolchain/libs/$(TARGET_SHARED)
    56 	ln -s ../../toolchain/libs/$(TARGET_SHARED).0.0.1 ../../toolchain/libs/$(TARGET_SHARED).0
    56 	ln -s ../../toolchain/libs/$(TARGET_SHARED).0.0.1 ../../toolchain/libs/$(TARGET_SHARED).0
    57 	ln -s ../../toolchain/libs/$(TARGET_SHARED).0 ../../toolchain/libs/$(TARGET_SHARED)
    57 	ln -s ../../toolchain/libs/$(TARGET_SHARED).0 ../../toolchain/libs/$(TARGET_SHARED)
    58 
    58 
    59 	cp $(TARGET_SHARED).0.0.1 ../nehe_demos/build/$(TARGET_SHARED).0
    59 	cp $(TARGET_SHARED).0.0.1 ../nehe_demos/build/$(TARGET_SHARED).0
    60 	cp -f include/*.h $(WIZSDK)/include/SDL13/
    60 	cp -f include/*.h $(WIZSDK)/include/SDL2/
    61 	cp -f include/*.h ../../toolchain/include/SDL13/
    61 	cp -f include/*.h ../../toolchain/include/SDL2/