File: vdkbMakefile

package info (click to toggle)
vdkbuilder2 2.4.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,680 kB
  • ctags: 4,989
  • sloc: cpp: 40,647; sh: 10,346; ansic: 2,718; makefile: 710; sed: 93
file content (79 lines) | stat: -rw-r--r-- 1,281 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
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Makefile for building
# /mario/VDKBuilderProject/vdkbuilder-2/example/hello/hello


####### Compiler, tools and options
C        =  gcc
CC       =  g++
CFLAGS   =  -g -Wall `vdk-config-2 --cflags`

INCPATH  = -I./
DEFD     = -DNONE
LINK     =  g++
LIBS     =  `vdk-config-2 --libs`

####### Files
PRJ_DIR =	/mario/VDKBuilderProject/vdkbuilder-2/example/hello

HEADERS =	$(PRJ_DIR)/hello.h\
	$(PRJ_DIR)/hello_gui.h\



SOURCES = 	$(PRJ_DIR)/hello.cc\
	$(PRJ_DIR)/hello_gui.cc\



OBJECTS =	$(PRJ_DIR)/hello.o\
	$(PRJ_DIR)/hello_gui.o\



OTHERS_OBJECTS =


TARGET =	hello

PRG_ARGS =	

####### Implicit rules
.SUFFIXES: .cc .c

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

.c.o:
	$(C)  -c   $(CFLAGS) $(INCPATH) $(DEFD) -o $@ $<

####### Build rules

all: $(TARGET)

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

####### Running (used by builder)

run: $(TARGET)

	cd /mario/VDKBuilderProject/vdkbuilder-2/example/hello

	./hello $(PRG_ARGS)

	cd /mario/VDKBuilderProject/vdkbuilder-2/example/hello


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

####### Compile


$(PRJ_DIR)/hello.o : $(PRJ_DIR)/hello.cc\
	$(PRJ_DIR)/hello.h\
	$(PRJ_DIR)/hello_gui.h

$(PRJ_DIR)/hello_gui.o : $(PRJ_DIR)/hello_gui.cc\
	$(PRJ_DIR)/hello.h