-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
66 lines (49 loc) · 1.6 KB
/
Makefile
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
61
62
63
64
65
HOST=aos3 # pass unix on any unix-like
ASM68K=vasmm68k_mot
ASMPPC=vasmppc_std
LD=vlink
CC=vc
LHA=lha
LOCAL_INC_DIR=../common
LOCAL_INCS=$(LOCAL_INC_DIR)/ppcdefines.i $(LOCAL_INC_DIR)/ppcmacros-std.i $(LOCAL_INC_DIR)/pci.i $(LOCAL_INC_DIR)/sonnet_lib.i $(LOCAL_INC_DIR)/sonnet_libppc.i
ASM68KPARAM=-m68020up -allmp -Fhunk -I$(LOCAL_INC_DIR)
ASMPPCPARAM=-many -mppc32 -mavec -Fhunk -I$(LOCAL_INC_DIR)
DISTRIBUTION=sonnet.lha
SONNETLIB_N=sonnetlib
POWERLIB_LIB=powerpc.library
TOOLS_N=tools
TOOLS_GETINFO=getinfo
TOOLS_GETINFOPPC=getinfo_ppc
TOOLS_INITPPC=InitPPC
TOOLS_BOGOMIPS=bogomips
TOOLS_GETSPEED=getspeed
TOOLS_SETSPEED=setspeed
TOOLS_GETTEMP=gettemp
WOSDB_N=wosdb
WOSDB_WOSDB=wosdb
VDA_N=vda
VDA_VDAPPC=vdappc
TOOLS_FX=tools750fx
export
all : $(SONNETLIB_N) $(TOOLS_N) $(WOSDB_N) $(VDA_N) $(TOOLS_FX)
$(SONNETLIB_N) :
$(MAKE) -C $(SONNETLIB_N)
$(TOOLS_N) :
$(MAKE) -C $(TOOLS_N)
$(WOSDB_N) :
$(MAKE) -C $(WOSDB_N)
$(VDA_N) :
$(MAKE) -C $(VDA_N)
$(TOOLS_FX) :
$(MAKE) -C $(TOOLS_FX)
clean :
$(MAKE) -C $(SONNETLIB_N) clean
$(MAKE) -C $(TOOLS_N) clean
$(MAKE) -C $(WOSDB_N) clean
$(MAKE) -C $(VDA_N) clean
$(MAKE) -C $(TOOLS_FX) clean
$(RM) $(DISTRIBUTION)
distribution :
$(LHA) ao5 $(DISTRIBUTION) $(SONNETLIB_N)/$(POWERLIB_LIB) $(TOOLS_N)/$(TOOLS_GETINFO) $(TOOLS_N)/$(TOOLS_GETINFOPPC) $(TOOLS_N)/$(TOOLS_INITPPC) $(WOSDB_N)/$(WOSDB_WOSDB) $(VDA_N)/$(VDA_VDAPPC) $(TOOLS_N)/$(TOOLS_BOGOMIPS) $(TOOLS_FX)/$(TOOLS_GETTEMP) $(TOOLS_FX)/$(TOOLS_GETSPEED) $(TOOLS_FX)/$(TOOLS_SETSPEED) README.md
.PHONY: $(SONNETLIB_N) $(SONNETRUN_N) $(TOOLS_N) $(WOSDB_N) $(VDA_N) $(TOOLS_FX)
include Makefile.inc.$(HOST)