diff options
Diffstat (limited to '')
-rw-r--r-- | pymake.conf | 88 |
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 | ||
5 | CXXFLAGS: -Ilibbu++/src | ||
6 | LDFLAGS: -Llibbu++ -lbu++ | ||
7 | |||
8 | ## A simple command to build everything in this directory, and output | ||
9 | ## an executable with the name 'main' | ||
10 | [BUILD] | ||
11 | DIR: src | ||
12 | COMMAND: exe | ||
13 | OUTPUT: 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] | ||
49 | INPUT: .cpp #take input of *.cpp files | ||
50 | OUTPUT: .o #output .o files | ||
51 | COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT} | ||
52 | CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR} | ||
53 | |||
54 | [TRIGGER] | ||
55 | INPUT: .c #take input of *.cpp files | ||
56 | OUTPUT: .o #output .o files | ||
57 | COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT} | ||
58 | CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR} | ||
59 | |||
60 | [TRIGGER] | ||
61 | INPUT .y | ||
62 | OUTPUT: .tab.c | ||
63 | COMMAND: bison {INPUT} | ||
64 | |||
65 | [TRIGGER] | ||
66 | INPUT .l | ||
67 | OUTPUT: .yy.c | ||
68 | COMMAND: flex --bison-bridge -o {OUTPUT} {INPUT} | ||
69 | |||
70 | ### Executable command ### | ||
71 | ## Use this command if you want a simple executable | ||
72 | [COMMAND] | ||
73 | NAME: exe | ||
74 | COMMAND: g++ {INPUT} {LDFLAGS} -o {OUTPUT} | ||
75 | |||
76 | ### Library command ### | ||
77 | ## Use this command if you wish to create a library | ||
78 | [COMMAND] | ||
79 | NAME: lib | ||
80 | COMMAND: 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} | ||