File: Makefile

package info (click to toggle)
vdk2 2.4.0-5.6
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,448 kB
  • sloc: cpp: 26,950; sh: 10,942; ansic: 9,220; makefile: 605; perl: 113
file content (44 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
###############################
# Makefile for building ./ttest
###############################

####### Compiler, tools and options

CC	=	g++
CFLAGS	=	-Wall -O2
INCPATH	=	-I./ `vdk-config-2 --cflags`
LINK	=	g++
LIBS	=	`vdk-config-2 --libs`

####### Files

HEADERS =	ttest.h

SOURCES =	ttest.cc 

OBJECTS =	ttest.o

TARGET	=	./ttest

####### Implicit rules

.SUFFIXES: .cc

.cc.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) 
	$(LINK)  -o $(TARGET) $(OBJECTS) $(LIBS)

clean:
	-rm -f $(OBJECTS) $(TARGET)
	-rm -f *~ core

####### Compile
ttest.o: ttest.cc\
		ttest.h