-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.global
53 lines (44 loc) · 1.41 KB
/
Makefile.global
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
# ____ ___ | / _____ _____
# | __ | |___/ | |
# |___| ___| | \ __|__ | gsKit Open Source Project.
# ----------------------------------------------------------------------
# Copyright 2004 - Chris "Neovanglist" Gilbert <[email protected]>
# Licenced under Academic Free License version 2.0
# Review gsKit README & LICENSE files for further details.
#
# Makefile.global - Makefile global variable include.
#
include $(GSKITSRC)/ee/Rules.make
EE_LIBS = -Xlinker --start-group $(EE_LIBS_EXTRA)
#ifdef LIBJPEG
# EE_INCS += -I$(LIBJPEG)/include
# EE_CFLAGS += -DHAVE_LIBJPEG
# EE_LIB_DIRS += -L$(LIBJPEG)/lib
# EE_LIBS += -ljpeg -lfileXio -ldebug
#endif
#ifdef LIBTIFF
# EE_INCS += -I$(LIBTIFF)/include
# EE_CFLAGS += -DHAVE_LIBTIFF
# EE_LIB_DIRS += -L$(LIBTIFF)/lib
# EE_LIBS += -ltiff -lm
#endif
ifdef LIBPNG
ifdef ZLIB
EE_INCS += -I$(ZLIB)/include -I$(LIBPNG)/include
EE_CFLAGS += -DHAVE_LIBPNG -DHAVE_ZLIB
EE_LIB_DIRS += -L$(ZLIB)/lib -L$(LIBPNG)/lib
EE_LIBS += -lz -lpng -lm
endif
endif
EE_LIBS += -lgskit_toolkit
EE_LIBS += -lgskit -ldmakit
EE_LIBS += -lc -lkernel
EE_LIBS += -Xlinker --end-group
# include dir
EE_INCS += -I$(GSKITSRC)/ee/gs/include -I$(GSKITSRC)/ee/dma/include
EE_CFLAGS += -fno-builtin-printf
EE_INCS += -I$(GSKITSRC)/ee/toolkit/include
# linker flags
EE_LIB_DIRS += -L$(GSKITSRC)/lib
EE_LIB_DIRS += -L$(PS2SDK)/ee/lib
EE_LDFLAGS += $(EE_LIB_DIRS)