aboutsummaryrefslogtreecommitdiff
path: root/pymake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'pymake.conf')
-rw-r--r--pymake.conf88
1 files changed, 88 insertions, 0 deletions
diff --git a/pymake.conf b/pymake.conf
new file mode 100644
index 0000000..83d9885
--- /dev/null
+++ b/pymake.conf
@@ -0,0 +1,88 @@
1### pymake by ~3o~ph()g (neonphog.com) ###
2## This skeleton file was generated by pymake... please edit for your project.
3
4## Global flag section, uncomment to set flags which will be applied to all
5CXXFLAGS: -Ilibbu++/src
6LDFLAGS: -Llibbu++ -lbu++
7
8## A simple command to build everything in this directory, and output
9## an executable with the name 'main'
10[BUILD]
11DIR: src
12COMMAND: exe
13OUTPUT: build
14
15## To run a command, like a legacy 'make' command, issue the following:
16#[RUN]
17#COMMAND: make -C testsrc/legacy #this command will normally be run
18#CLEAN: make -C testsrc/legacy clean #this command will be run on '-c'
19
20## A more complicated build example
21#[BUILD]
22#COMMAND: exe
23#OUTPUT: the_one
24#DIR: testsrc/one
25#FILE: testsrc/share/test.cpp
26#CXXFLAGS: -Itestsrc/share
27#LDFLAGS: -lreadline
28
29## The [DIRBUILD] macro expands into many [BUILD] sections:
30#[DIRBUILD]
31#COMMAND: exe
32#OUTPUT: db{NAME}.so #{NAME} will be replaced with the directory name
33#ROOT: testsrc/db
34#CXXFLAGS -Itestsrc/share
35#LDFLAGS: -lreadline
36
37## The [OVERRIDE] directive allows you to append flags to specific targets
38#[OVERRIDE]
39#FILE: testsrc/db/mysql/main.o
40#CXXFLAGS: -I../..
41
42### The following are the build commands and triggers ###
43### These are the default gnu g++ build commands ###
44
45### Compile trigger ###
46## Takes c++ source code, builds an object file
47## Includes function for dependancy checking
48[TRIGGER]
49INPUT: .cpp #take input of *.cpp files
50OUTPUT: .o #output .o files
51COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT}
52CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR}
53
54[TRIGGER]
55INPUT: .c #take input of *.cpp files
56OUTPUT: .o #output .o files
57COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT}
58CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR}
59
60[TRIGGER]
61INPUT .y
62OUTPUT: .tab.c
63COMMAND: bison {INPUT}
64
65[TRIGGER]
66INPUT .l
67OUTPUT: .yy.c
68COMMAND: flex --bison-bridge -o {OUTPUT} {INPUT}
69
70### Executable command ###
71## Use this command if you want a simple executable
72[COMMAND]
73NAME: exe
74COMMAND: g++ {INPUT} {LDFLAGS} -o {OUTPUT}
75
76### Library command ###
77## Use this command if you wish to create a library
78[COMMAND]
79NAME: lib
80COMMAND: ar cr{ARFLAGS} {OUTPUT} {INPUT}
81
82### Strange example ###
83## The following trigger will take all *.q files, strip all '&'s from them
84## and generate a .cpp file, which will then be compiled using the cpp trigger.
85#[TRIGGER]
86#INPUT: .q
87#OUTPUT: .cpp
88#COMMAND: sed -e "s/&//g" {INPUT} > {OUTPUT}