aboutsummaryrefslogtreecommitdiff
path: root/pymake.conf
blob: 8880f9c41a3d33c319ac3964aae294f26ee8b3d5 (plain)
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
### pymake by ~3o~ph()g (neonphog.com) ###
## This skeleton file was generated by pymake... please edit for your project.

CXXFLAGS: -ggdb -fPIC
LDFLAGS: -ggdb

[BUILD]
DIR: src
COMMAND: lib
OUTPUT: libbu++.a

#
# Uncomment this if you want to build the tests, these don't rely on anything
# that libbu++ doesn't rely on.
#
#[DIRBUILD]
#COMMAND: exe
#OUTPUT: tests/{NAME}
#ROOT: src/test
#LDFLAGS: -L. -lbu++
#CXXFLAGS: -Isrc -Isrc/test
#
#[OVERRIDE]
#FILE: tests/plugin
#LDFLAGS: -ldl

#
# Uncomment this if you have cpptest and want to build the unit tests
#
#[DIRBUILD]
#COMMAND: exe
#OUTPUT: unit/{NAME}
#ROOT: src/unit
#LDFLAGS: -L. -lbu++ -lcpptest
#CXXFLAGS: -Isrc

[TRIGGER]
INPUT: .cpp    #take input of *.cpp files
OUTPUT: .o     #output .o files
COMMAND: g++ -fPIC -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT}
CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR}

### Executable command ###
## Use this command if you want a simple executable
[COMMAND]
NAME: exe
COMMAND: g++ {INPUT} {LDFLAGS} -o {OUTPUT}

### Library command ###
## Use this command if you wish to create a library
[COMMAND]
NAME: lib
COMMAND: ar cr{ARFLAGS} {OUTPUT} {INPUT}