Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (51 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
68 lines (51 loc) · 1.53 KB
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
67
68
#!smake
# Universal IRIX smake Skeleton
# -----------------------------
# Toolchain Definitions (Adjust for MIPSpro or GCC)
# For IRIX MIPSpro, CC is usually 'cc', CXX is 'CC'
CC = cc
CXX = CC
LD = cc
AR = ar
# Configuration
DEBUG = 0
# Global Flags
# -I.: Include current directory
CPPFLAGS = -I. -I../include -I../src -D_SGI_MP_SOURCE
ABI_FLAGS = -mips3 -n32
#if $(DEBUG) == "1"
OPT_FLAGS = -g -DDEBUG -D_DEBUG
#else
OPT_FLAGS = -O2 -DNDEBUG
#endif
CFLAGS = $(ABI_FLAGS) $(OPT_FLAGS) -c99 -woff 1185,1209,3968,3970
CXXFLAGS = $(ABI_FLAGS) $(OPT_FLAGS)
LDFLAGS = $(ABI_FLAGS)
LIBS = -lm -laudio -lpthread
# --- User Customization Section ---
# Define per-directory flags here (format: DIR_NAME_FLAGS, replace ./- with _)
# Example: core_CFLAGS = -DDEBUG_CORE
# core_CFLAGS =
# Define per-target flags here
# Example: myapp_LDFLAGS = -L/usr/local/lib
# myapp_LDFLAGS =
# ----------------------------------
# Default target must be first
default: all
# Include the generated object definitions and rules
include objs.mk
../include/SDL_revision.h:
@if [ ! -f ../include/SDL_revision.h ]; then \
echo "#define SDL_REVISION \"IRIX-Port\"" > ../include/SDL_revision.h; \
echo "#define SDL_REVISION_NUMBER 0" >> ../include/SDL_revision.h; \
fi
# Main Targets
all: ../include/SDL_revision.h $(ALL_TARGETS)
clean:
rm -f $(ALL_TARGETS) $(ALL_CLEAN_OBJS)
rm -rf objs
rm -f ../include/SDL_revision.h
# Force regeneration if project.def changes
objs.mk: project.def gen.sh
./gen.sh
.PHONY: all clean default