
Former-commit-id: bbd3fe3c0438b9f8d2188b8d1f5ffc70616a789f Former-commit-id: d19da520563adeb80996df92c65ba5e1e6785596
20 lines
695 B
Makefile
20 lines
695 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
|
|
#
|
|
|
|
CFLAGS=-O2 -g -Wall -W
|
|
LIBS=-lm -lSDL2 -lSDL2_ttf -lSDL2_gfx
|
|
CC=g++
|
|
|
|
all: map1090
|
|
|
|
%.o: %.c %.cpp
|
|
$(CC) $(CFLAGS) $(EXTRACFLAGS) -c $<
|
|
|
|
map1090: map1090.o AircraftData.o AircraftList.o Aircraft.o anet.o interactive.o mode_ac.o mode_s.o net_io.o Input.o View.o font.o init.o mapdata.o status.o parula.o monokai.o
|
|
$(CC) -g -o map1090 map1090.o AircraftData.o AircraftList.o Aircraft.o anet.o interactive.o mode_ac.o mode_s.o net_io.o Input.o View.o font.o init.o mapdata.o status.o parula.o monokai.o $(LIBS) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o map1090
|