Makefile
561 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
38
#!gmake
ifndef SIMTOOLS
SIMTOOLS = ../../../..
endif
include $(SIMTOOLS)/makedefs
ifeq ($(CPU),SGI)
default: simos
else
default: simos-sun
endif
simos: simos-dir
($(MAKE) -f ../Makefile.ALL -C SGI SIMOS=1)
simos-sun: simos-sun-dir
($(MAKE) -f ../Makefile.ALL -C SUN SIMOS=1)
simos-dir:
@if [ -d SGI ] ; then true; else mkdir SGI; fi
simos-sun-dir:
@if [ -d SUN ] ; then true; else mkdir SUN; fi
ifeq ($(CPU),SGI)
clean: clean-sgi
else
clean: clean-sun
endif
clean-sgi:
rm -rf core SGI
clean-sun:
rm -rf core SUN