GNUmakefile
1.5 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!smake
#
# Makefile for exception library subdirectory
#
SUBDIR=exception
COMMONPREF=$(SUBDIR)
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs
LIBDEPTH=$(ROOT)/PR/libultra
include $(LIBDEPTH)/libdefs
sinclude ../companydefs
sinclude locdefs
#LCOPTS = -non_shared -mips2 -fullwarn -G 0 -wlint,-f -woff 819,826,852
LCOPTS = -non_shared -mips2 -Wall -G 0
LCINCS = -I. -I$(LIBDEPTH)/include -I$(PRDEPTH)/include
LASOPTS = -non_shared -G 0 -mips2
LASINCS = -I. -I$(PRDEPTH)/include
CFILES = sethwinterrupt.c gethwinterrupt.c setpiinterrupt.c \
setglobalintmask.c resetglobalintmask.c
ASFILES = exceptasm.s interrupt.s setintmask.s getintmask.s
LDIRT = makethreadasm ./threadasm.h
exceptasm.o: exceptasm.s ./threadasm.h
# $(AS) $(LASDEFS) $(LASINCS) -non_shared -G 0 -mips3 -32 \
$(GASFLAGS) -o $@ $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/exceptasm.s
$(AS) $(LASDEFS) $(LASINCS) -non_shared -G 0 -mips2 -Wa,-32 \
$(GASFLAGS) -o $@ $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/exceptasm.s
$(ARCHIVES:=($(OBJECTS))): ./threadasm.h
./threadasm.h: makethreadasm
./makethreadasm > threadasm.h
makethreadasm: $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/makethreadasm.c $(PRDEPTH)/include/os.h
$(HOST_CCF) $(LCINCS) -I$(ROOT)/usr/include -o $@ $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/makethreadasm.c
include $(LIBDEPTH)/librules
include $(PRDEPTH)/PRrules
install: default
clobber clean: $(_FORCE)
@for i in $(TARGETS) ; do \
cd $(LIBDEPTH)/$$i ; \
$(MAKE) -f $(LIBDEPTH)/$(COMPANY)/$(SUBDIR)/GNUmakefile rmldirt ;\
done
rmldirt: $(_FORCE)
rm -rf $(LDIRT)