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