Created
July 13, 2010 08:53
-
-
Save siritori/473647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INCLUDES = src src_api src_sys src_usb | |
| CC = h8300-elf-gcc -msx -mint32 -std=gnu99 -c $(addprefix -I, $(INCLUDES)) | |
| AS = h8300-elf-gcc -msx -mint32 -Xassembler $(addprefix -I, $(INCLUDES)) | |
| LINK = h8300-elf-gcc -msx -mint32 -nostartfiles -nodefaultlibs | |
| CFLAGS = -O0 -g3 | |
| ASFLAGS = -g3 | |
| LINKFLAGS = -g3 | |
| OBJCOPY = h8300-elf-objcopy | |
| OUTDIR = Objects | |
| TARGET = PROG.mot | |
| SYS_OBJS = src/main.o\ | |
| src_api/analog.o src_api/bsc.o src_api/cpg.o src_api/dmac.o src_api/dtc.o src_api/fat16.o\ | |
| src_api/gpio.o src_api/graphics.o src_api/key.o src_api/lcd1602.o src_api/lcdpanel.o src_api/rtc.o\ | |
| src_api/sdcard.o src_api/spi.o src_api/tmr.o src_api/touch.o\ | |
| src_sys/console.o src_sys/irq.o\ | |
| src_sys/malloc.o src_sys/retarget.o src_sys/start.o src_sys/stub.o src_sys/uart.o\ | |
| src_sys/usb.o src_sys/vects.o\ | |
| src_usb/DoBulk.o src_usb/DoControl.o src_usb/DoRequest.o src_usb/DoRequestComCommand.o\ | |
| src_usb/DoRequestVenderCommand.o src_usb/DoSerial.o src_usb/StartUp.o src_usb/UsbMain.o | |
| USROBJS = | |
| LIBS = -lc -lgcc -lm | |
| LDSCRIPT = ldscript/H8SX_1655.link | |
| TARGET: PROG.elf | |
| $(OBJCOPY) -O srec $< $@ | |
| PROG.elf: $(SYS_OBJS) $(USROBJS) $(LDSCRIPT) | |
| $(LINK) -T$(LDSCRIPT) -Map=PROG.map -o$@ $(SYS_OBJS) $(USROBJS) $(LIBS) | |
| %.o: %.c | |
| $(CC) -c $(CFLAGS) -o$@ $< | |
| %.o: %.S | |
| $(AS) -c $(ASFLAGS) -o$@ $< | |
| # Auto generated. | |
| main.o: src/main.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| analog.o: src_api/analog.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h src/application.h | |
| bsc.o: src_api/bsc.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| cpg.o: src_api/cpg.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| dmac.o: src_api/dmac.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| dtc.o: src_api/dtc.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| fat16.o: src_api/fat16.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| gpio.o: src_api/gpio.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| graphics.o: src_api/graphics.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| key.o: src_api/key.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| lcd1602.o: src_api/lcd1602.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| lcdpanel.o: src_api/lcdpanel.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| rtc.o: src_api/rtc.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| sdcard.o: src_api/sdcard.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| spi.o: src_api/spi.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| tmr.o: src_api/tmr.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h src/application.h | |
| touch.o: src_api/touch.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| console.o: src_sys/console.c src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| irq.o: src_sys/irq.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| malloc.o: src_sys/malloc.c | |
| retarget.o: src_sys/retarget.c src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| stub.o: src_sys/stub.c src_sys/sys.h src/config.h src_sys/iodefine.h \ | |
| src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| uart.o: src_sys/uart.c src_sys/sys.h src/config.h src_sys/iodefine.h \ | |
| usb.o: src_sys/usb.c src_sys/sys.h src/config.h src_sys/iodefine.h \ | |
| src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| vects.o: src_sys/vects.c src_api/api.h src_sys/sys.h src/config.h \ | |
| src_sys/iodefine.h | |
| DoBulk.o: src_usb/DoBulk.c src_sys/sys.h src/config.h src_sys/iodefine.h \ | |
| src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| DoControl.o: src_usb/DoControl.c src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| DoRequest.o: src_usb/DoRequest.c src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| DoRequestComCommand.o: src_usb/DoRequestComCommand.c src_usb/SysMemMap.h \ | |
| src_sys/iodefine.h src_usb/CatProType.h \ | |
| src_usb/CatTypedef.h src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| DoRequestVenderCommand.o: src_usb/DoRequestVenderCommand.c \ | |
| src_usb/SysMemMap.h src_sys/iodefine.h src_usb/CatProType.h \ | |
| src_usb/CatTypedef.h src_usb/SetSystemSwitch.h \ | |
| src_usb/SetMacro.h | |
| DoSerial.o: src_usb/DoSerial.c src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| StartUp.o: src_usb/StartUp.c src_usb/SysMemMap.h \ | |
| src_sys/iodefine.h src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h | |
| UsbMain.o: src_usb/UsbMain.c src_usb/SysMemMap.h src_sys/iodefine.h \ | |
| src_usb/CatProType.h src_usb/CatTypedef.h \ | |
| src_usb/SetSystemSwitch.h src_usb/SetMacro.h src_usb/SetUsbInfo.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment