forked from AmigaLabs/clib4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shared.gmk
66 lines (48 loc) · 1.98 KB
/
shared.gmk
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
66
#
# $Id: shared.gmk,v 1.0 2023-04-22 10:09:48 clib4devs Exp $
#
ifdef SPE
$(OUT_SHARED_LIB)/shared_library/clib4.o : CFLAGS = $(INCLUDES) $(OPTIONS) $(OPTIMIZE) -O0 -fno-aggressive-loop-optimizations
$(OUT_SHARED_LIB)/shared_library/clib4.o : $(LIB_DIR)/shared_library/clib4.c $(LIB_DIR)/shared_library/clib4.h
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/shared_library/%.o : $(LIB_DIR)/shared_library/%.c
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/%.o : $(LIB_DIR)/%.c
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/math/%.o : $(LIB_DIR)/math/%.c
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/profile/%.o : $(LIB_DIR)/profile/%.c
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/amiga/%.o : $(LIB_DIR)/amiga/%.c
$(VERBOSE)$(COMPILE_SPE)
$(OUT_SHARED_LIB)/crypt/%.o : $(LIB_DIR)/crypt/%.c
$(VERBOSE)$(COMPILE_SPE)
else
$(OUT_SHARED_LIB)/shared_library/clib4.o : CFLAGS = $(INCLUDES) $(OPTIONS) $(OPTIMIZE) -O0 -fno-aggressive-loop-optimizations
$(OUT_SHARED_LIB)/shared_library/clib4.o : $(LIB_DIR)/shared_library/clib4.c $(LIB_DIR)/shared_library/clib4.h
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/shared_library/%.o : $(LIB_DIR)/shared_library/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/shared_library/%.o : $(LIB_DIR)/shared_library/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/%.o : $(LIB_DIR)/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/math/%.o : $(LIB_DIR)/math/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/profile/%.o : $(LIB_DIR)/profile/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/amiga/%.o : $(LIB_DIR)/amiga/%.c
$(VERBOSE)$(COMPILE)
$(OUT_SHARED_LIB)/crypt/%.o : $(LIB_DIR)/crypt/%.c
$(VERBOSE)$(COMPILE)
endif
$(OUT_SHARED_LIB)/%.o : $(LIB_DIR)/%.sx
$(VERBOSE)$(COMPILE_ALTIVEC_REG)
$(OUT_SHARED_LIB)/cpu/generic/%.o : $(LIB_DIR)/cpu/generic/%.S
$(VERBOSE)$(COMPILE_REG)
$(OUT_SHARED_LIB)/cpu/spe/%.o : $(LIB_DIR)/cpu/spe/%.S
$(VERBOSE)$(COMPILE_SPE_REG)
$(OUT_SHARED_LIB)/math/%_spe.o : $(LIB_DIR)/math/%_spe.S
$(VERBOSE)$(COMPILE_SPE_REG)
$(OUT_SHARED_LIB)/%.o : $(LIB_DIR)/%.S
$(VERBOSE)$(COMPILE_ASM)