annotate Makefile @ 9:87cb16492d91

Improve Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 28 Oct 2019 00:15:37 +0200
parents 4d6fec8f0c64
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)