
Former-commit-id: c2472d32726924a6f431c1fc5cf223e68e91045c Former-commit-id: 9afa79003e882347a41e1f187d13ef45c5113089
20 lines
663 B
Makefile
20 lines
663 B
Makefile
#
|
|
# When building a package or installing otherwise in the system, make
|
|
# sure that the variable PREFIX is defined, e.g. make PREFIX=/usr/local
|
|
#
|
|
|
|
CPPFLAGS=-O2 -g -Wno-write-strings -I/usr/include/SDL2
|
|
LIBS=-lm -lSDL2 -lSDL2_ttf -lSDL2_gfx
|
|
CC=g++
|
|
|
|
all: map1090
|
|
|
|
%.o: %.c %.cpp
|
|
$(CC) $(CFLAGS) $(EXTRACFLAGS) -c $<
|
|
|
|
map1090: map1090.o AppData.o AircraftList.o Aircraft.o anet.o interactive.o mode_ac.o mode_s.o net_io.o Input.o View.o Map.o parula.o monokai.o
|
|
$(CC) -g -o map1090 map1090.o AppData.o AircraftList.o Aircraft.o anet.o interactive.o mode_ac.o mode_s.o net_io.o Input.o View.o Map.o parula.o monokai.o $(LIBS) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o map1090
|