-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile-mac
More file actions
38 lines (25 loc) · 733 Bytes
/
Makefile-mac
File metadata and controls
38 lines (25 loc) · 733 Bytes
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
# source files.
SRC = ColorReduction.cpp ConsoleGraphics.cpp Palette.cpp Tileset.cpp ColorReductionMultipalette.cpp Conversion.cpp Map.cpp PlatformAware.cpp pugixml.cpp Image.cpp Image-mac.mm
OBJ_TEMP = $(SRC:.cpp=.o)
OBJ = $(OBJ_TEMP:.mm=.o)
OUT = libConsoleGraphicsLibrary.a
# include directories
INCLUDES = -I.
# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g -O3
# compiler
CCC = gcc
# library paths
LIBS = -L../ -L/usr/local/lib -lm
# compile flags
LDFLAGS = -g
.SUFFIXES: .cpp .mm
default: $(OUT)
.mm.o:
$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
.cpp.o:
$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
$(OUT): $(OBJ)
ar rcs $(OUT) $(OBJ)
clean:
rm -f $(OBJ) $(OUT) Makefile.bak