annotate Makefile @ 14:62be2036f604

Read mesh vertices/faces information from "<modelfilename>.info" instead of having the values hardcoded.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 29 Oct 2019 12:48:36 +0200
parents 87cb16492d91
children a329f0216491
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
1 BINEXT ?=
0
3d74a9dd96e4 Initial import of Thomas Trummer's original code.
Thomas Trummer
parents:
diff changeset
2
9
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
3 SDLGL_CFLAGS ?= $(shell pkg-config --cflags sdl2 gl glu)
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
4 SDLGL_LIBS ?= $(shell pkg-config --libs sdl2 gl glu)
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
5
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
6 CFLAGS ?= -O3 -W -Wall -DGL_GLEXT_PROTOTYPES
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
7 LDFLAGS ?=
0
3d74a9dd96e4 Initial import of Thomas Trummer's original code.
Thomas Trummer
parents:
diff changeset
8
3
be31ff9e5f58 Port to libSDL2, clean up the code and some de-C++-ifications.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
9 TARGETS = glxdragon$(BINEXT)
be31ff9e5f58 Port to libSDL2, clean up the code and some de-C++-ifications.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
10
be31ff9e5f58 Port to libSDL2, clean up the code and some de-C++-ifications.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
11 glxdragon$(BINEXT): glxdragon.cpp
9
87cb16492d91 Improve Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
12 $(CXX) $(CFLAGS) $(SDLGL_CFLAGS) -o $@ $< $(LDFLAGS) $(SDLGL_LIBS)
0
3d74a9dd96e4 Initial import of Thomas Trummer's original code.
Thomas Trummer
parents:
diff changeset
13
3d74a9dd96e4 Initial import of Thomas Trummer's original code.
Thomas Trummer
parents:
diff changeset
14 clean:
3
be31ff9e5f58 Port to libSDL2, clean up the code and some de-C++-ifications.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
15 $(RM) $(TARGETS)