GNUmakefile
857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include $(ROOT)/usr/include/make/PRdefs
OPTIMIZER = -g
TARGETS=libgdb.a
PRDEPTH=..
include $(PRDEPTH)/PRdefs
#LCOPTS = -non_shared -G 0 -mips2 -fullwarn -wlint,-f -woff 819,826,852,827
LCOPTS = -non_shared -G 0 -mips2 -Wall
LCINCS = -I. -I$(PRDEPTH)/include -I$(PRDEPTH)/libultra/include
LASOPTS = -non_shared -G 0 -mips2
LASINCS = -I. -I$(PRDEPTH)/include -I$(PRDEPTH)/libultra/nintendo/exception \
-I$(PRDEPTH)/libultra/libultra
ASFILES = exceptasm.s gdbwritebackdcache.s gdbinvalicache.s gdbbreak.s
CFILES = initialize.c gdbHandler.c gdbStep.c
exceptasm.o: exceptasm.s
$(AS) $(LASDEFS) $(LASINCS) -non_shared -G 0 -mips3 -Wa,-32 \
$(GASFLAGS) -o $@ exceptasm.s
libgdb.a: Makefile $(OBJECTS)
$(AR) rc $@ $(OBJECTS)
default: $(TARGETS)
include $(COMMONRULES)
headers exports:
install: default
exports install: default