-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.osx
34 lines (23 loc) · 880 Bytes
/
Makefile.osx
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
TARGET = colditz
OBJS = conf.o dictionary.o game.o graphics.o getopt.o iniparser.o low-level.o main.o md5.o soundplayer.o osx/audio_backend.o
DEPS = glut/libglut.a
CC = gcc
LD = gcc
CFLAGS += -I. -O3 -Wall -Wshadow -Wundef -Wunused
CXXFLAGS += $(CFLAGS) -fno-exceptions -fno-rtti
LIBS += -lfreeglut -lX11 -lXi -lXmu -lXext -lGL -lGLU -lGLEW -framework CoreFoundation -framework IOKit -framework CoreAudio -framework AudioUnit
LIBDIRS += -L./freeglut -L/opt/X11/lib
LDFLAGS += $(LIBDIRS) $(LIBS)
.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
all: $(TARGET)
$(DEPS):
$(MAKE) -Cfreeglut libfreeglut.a
$(TARGET): $(DEPS) $(OBJS)
$(LD) -o $(TARGET) $(OBJS) $(LDFLAGS)
clean:
$(RM) $(OBJS) $(TARGET)
superclean: clean
$(MAKE) -Cfreeglut clean
release: all
cp colditz "Colditz Escape"