summaryrefslogtreecommitdiff
path: root/libs/JSystem/J3DGraphBase/Makefile
blob: 82af2f83b3d2762a6794f6f05f5b5c91f215e71f (plain)
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
#
# Generated By: dol2asm
#

LIBJ3DGRAPHBASE_A_CPP_FILES := \
	libs/JSystem/J3DGraphBase/J3DGD.cpp \
	libs/JSystem/J3DGraphBase/J3DSys.cpp \
	libs/JSystem/J3DGraphBase/J3DVertex.cpp \
	libs/JSystem/J3DGraphBase/J3DTransform.cpp \
	libs/JSystem/J3DGraphBase/J3DTexture.cpp \
	libs/JSystem/J3DGraphBase/J3DPacket.cpp \
	libs/JSystem/J3DGraphBase/J3DShapeMtx.cpp \
	libs/JSystem/J3DGraphBase/J3DShapeDraw.cpp \
	libs/JSystem/J3DGraphBase/J3DShape.cpp \
	libs/JSystem/J3DGraphBase/J3DMaterial.cpp \
	libs/JSystem/J3DGraphBase/J3DMatBlock.cpp \
	libs/JSystem/J3DGraphBase/J3DTevs.cpp \
	libs/JSystem/J3DGraphBase/J3DDrawBuffer.cpp \
	libs/JSystem/J3DGraphBase/J3DStruct.cpp \

LIBJ3DGRAPHBASE_A_O_FILES := \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DGD.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DSys.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DVertex.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DTransform.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DTexture.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DPacket.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DShapeMtx.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DShapeDraw.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DShape.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DMaterial.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DMatBlock.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DTevs.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DDrawBuffer.o \
	$(BUILD_DIR)/libs/JSystem/J3DGraphBase/J3DStruct.o \

LIBJ3DGRAPHBASE_A_CFLAGS := \

LIBJ3DGRAPHBASE_A_LDFLAGS := \
	-nodefaults \
	-fp hard \
	-proc gekko \
	-linkmode moreram \

$(BUILD_DIR)/libJ3DGraphBase.a: $(LIBJ3DGRAPHBASE_A_O_FILES)
	@echo linking... $(BUILD_DIR)/libJ3DGraphBase.a
	@echo $(LIBJ3DGRAPHBASE_A_O_FILES) > build/LIBJ3DGRAPHBASE_A_ofiles
	@$(LD) -xm l $(LIBJ3DGRAPHBASE_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DGraphBase.a @build/LIBJ3DGRAPHBASE_A_ofiles

$(BUILD_DIR)/libs/JSystem/J3DGraphBase/%.o: libs/JSystem/J3DGraphBase/%.cpp
	@mkdir -p $(@D)
	@echo building... $<
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(LIBJ3DGRAPHBASE_A_CFLAGS) -c -o $@ $(basename $@).cpp