developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 1 | EXEC = switch |
| 2 | |
| 3 | SRC=switch_fun.c switch_753x.c switch_ioctl.c switch_netlink.c |
developer | 5c2422b | 2024-03-08 00:27:44 +0800 | [diff] [blame] | 4 | SRC+=switch_fun_an8855.c an8855_sdk/api/src/*.c |
| 5 | |
| 6 | CFLAGS+=-I./an8855_sdk/api/inc |
| 7 | CFLAGS+=-DCOMPAT_MODE |
developer | fd40db2 | 2021-04-29 10:08:25 +0800 | [diff] [blame] | 8 | |
| 9 | all: $(EXEC) |
| 10 | |
| 11 | switch: $(SRC) |
| 12 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(LDLIBS) $(LIBS) |
| 13 | |
| 14 | romfs: |
| 15 | $(ROMFSINST) /bin/switch |
| 16 | |
| 17 | clean: |
| 18 | -rm -f $(EXEC) *.elf *.gdb *.o |