File: Makefile

package info (click to toggle)
lagan 2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,360 kB
  • sloc: ansic: 8,542; perl: 7,732; cpp: 3,260; makefile: 85
file content (19 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = g++
OPTFLAGS = 
CFLAGS += $(OPTFLAGS) -O3
CLINKER = g++ 
# LIBDIR = -L/usr/local/lib
MLIB =  -lm
INCDIR =   -I./
TRGT_DIR = ../..
TRGT = glocal
OBJECTS = glocal.o io.o rightinfluence.o leftinfluence.o score.o

.cpp.o:
	$(CC) -Wno-deprecated $(CFLAGS) $(INCDIR) -c $*.cpp $(LDFLAGS)

$(TRGT): $(OBJECTS)
	$(CLINKER) $(OPTFLAGS) $(OBJECTS) -o $(TRGT_DIR)/$(TRGT) $(MLIB)

clean :
	rm -f *.o ./*~ *~ core