Makefile revision 7977:60051d2262c2
16157Snate@binkert.org# 26157Snate@binkert.org# $Id: Makefile,v 1.2 1997/12/16 01:18:38 bugnion Exp $ 36157Snate@binkert.org# 46157Snate@binkert.org# Revision History: 56157Snate@binkert.org# 66157Snate@binkert.org# $Log: Makefile,v $ 76157Snate@binkert.org# Revision 1.2 1997/12/16 01:18:38 bugnion 86157Snate@binkert.org# Removed bogus TLASER offsets from palcode build. -- roll over 96157Snate@binkert.org# simultaneously with the simulation tree 106157Snate@binkert.org# 116157Snate@binkert.org# Revision 1.1.1.1 1997/10/30 23:27:18 verghese 126157Snate@binkert.org# current 10/29/97 136157Snate@binkert.org# 146157Snate@binkert.org# 156157Snate@binkert.org# Set environment variables to point to various things: 166157Snate@binkert.org# 176157Snate@binkert.org# EB_TOOLBOX - Where your toolset is located 186157Snate@binkert.org# 196157Snate@binkert.org 206157Snate@binkert.orgEB_TOOLBOX = /wrl/proj/simos/bin/tools/osf 216157Snate@binkert.orgCPP = /usr/bin/cpp 226157Snate@binkert.orgAS = $(EB_TOOLBOX)/gas 236157Snate@binkert.orgLD = $(EB_TOOLBOX)/gld 246157Snate@binkert.orgDIS = $(EB_TOOLBOX)/alist 256157Snate@binkert.orgSTRIP = $(EB_TOOLBOX)/astrip 266157Snate@binkert.orgPVC = $(EB_TOOLBOX)/pvc 276157Snate@binkert.orgMAKEDEP = $(CPP) -MM 286157Snate@binkert.org 296157Snate@binkert.org# 306157Snate@binkert.org# Define KDEBUG if you want a special unprivileged CALL_PAL 316157Snate@binkert.org# breakpoint trap handler for remote kernel debugging. 326157Snate@binkert.org# 336157Snate@binkert.org# Define CONSOLE_ENTRY to change the sys$enter_console 346157Snate@binkert.org# transfer address. Default CONSOLE_ENTRY value is 0x10000. 356157Snate@binkert.org# 366157Snate@binkert.org# Define DISABLE_CRD to disable CRD. Note that reset sets MCES so that 376157Snate@binkert.org# correctable errors are ignored anyway, but this actually stops the 38# interrupt. 39# 40 41DEFINES = -DDISABLE_CRD -DSIMOS -DBUILD_PALCODE 42DEFINES += -I$(SIMTOOLS)/cpus-alpha/simos 43 44CPPFLAGS = 45ASFLAGS = -21164 46#LDFLAGS = -Tstrip 0 -Thdr -N 47#LDFLAGS = -Tstrip 2000 -Thdr -N # removed bugnion 48LDFLAGS = -Tstrip 4000 -Thdr -N 49# Source files: 50# 51# This is the only block in which the list of source files should change. 52# 53# SFILES - assembler source files 54# HFILES - header files 55# 56 57SFILES = osfpal.s platform.s 58 59HFILES = dc21164.h \ 60 osf.h \ 61 macros.h \ 62 ev5_impure.h \ 63 cserve.h \ 64 platform.h 65 66# Intermediate files: 67# 68# This block should not change. 69# 70 71IFILES = $(SFILES:.s=.i) 72 73# Object files: 74# 75# This block should not change. 76# 77 78OFILES = $(IFILES:.i=.o) 79 80.DEFAULT: 81 co -u $< 82 83.SUFFIXES: 84.SUFFIXES: .s .i .o 85 86.s.i: 87 $(CPP) $(CPPFLAGS) $(DEFINES) $< $*.i 88 89osfpal.nh: osfpal 90 $(STRIP) -a osfpal $@ 91 $(DIS) osfpal >osfpal.dis 92 93osfpal: $(OFILES) 94 echo '$OFILES= ' $(OFILES) 95 $(LD) $(LDFLAGS) -o $@ $(OFILES) 96 97osfpal.o: osfpal.i 98 $(AS) $(ASFLAGS) -o $@ osfpal.i 99 100platform.o: platform.i 101 $(AS) $(ASFLAGS) -o $@ platform.i 102 103pvc: osfpal.lis osfpal.nh osfpal.ent osfpal.map 104 (export PVC_PAL PVC_ENTRY PVC_MAP PVC_CPU; \ 105 PVC_PAL=osfpal.nh; \ 106 PVC_ENTRY=osfpal.ent; \ 107 PVC_MAP=osfpal.map; \ 108 PVC_CPU=ev5; \ 109 $(PVC);) 110 111osfpal.lis: osfpal 112 $(DIS) osfpal > $@ 113 114osfpal.map: osfpal 115 $(DIS) -m osfpal > $@ 116 117depend: 118 @cat < /dev/null > makedep 119 @(for i in $(SFILES); do echo $$i; \ 120 $(MAKEDEP) $(DEFINES) $$i | \ 121 awk '{ if ($$1 != prev) {if (rec != "") print rec; \ 122 rec = $$0; prev = $$1; } \ 123 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ 124 else rec = rec " " $$2 } } \ 125 END { print rec }' | sed 's/\.o/\.i/' \ 126 >> makedep; done) 127 @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' > eddep 128 @echo '$$r makedep' >> eddep 129 @echo 'w' >> eddep 130 @cp Makefile Makefile.bak 131 @ed - Makefile < eddep 132 @rm -f eddep makedep 133 @echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile 134 @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile 135 @echo '# see make depend above' >> Makefile 136 137clean: 138 rm -f core $(OFILES) $(IFILES) 139 140clobber: clean 141 rm -f osfpal.lis osfpal.nh osfpal.map osfpal 142 143rcsinfo: 144 rlog RCS/* 145 146rcsget: 147 co -u $(HFILES) $(SFILES) 148 149# DO NOT DELETE THIS LINE 150osfpal.i: osfpal.s 151platform.i: platform.s ./cserve.h ./platform.h 152# DEPENDENCIES MUST END AT END OF FILE 153# IF YOU PUT STUFF HERE IT WILL GO AWAY 154# see make depend above 155 156 157 158