blob: 1d88a8c6c3e49f78fec9e77d4bbb625b54a5c0e7 [file] [log] [blame]
developerfd40db22021-04-29 10:08:25 +08001EXEC = switch
2
3SRC=switch_fun.c switch_753x.c switch_ioctl.c switch_netlink.c
developer5c2422b2024-03-08 00:27:44 +08004SRC+=switch_fun_an8855.c an8855_sdk/api/src/*.c
5
6CFLAGS+=-I./an8855_sdk/api/inc
7CFLAGS+=-DCOMPAT_MODE
developerfd40db22021-04-29 10:08:25 +08008
9all: $(EXEC)
10
11switch: $(SRC)
12 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(LDLIBS) $(LIBS)
13
14romfs:
15 $(ROMFSINST) /bin/switch
16
17clean:
18 -rm -f $(EXEC) *.elf *.gdb *.o