aboutsummaryrefslogtreecommitdiff
path: root/pymake.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-29 19:44:04 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-29 19:44:04 +0000
commit21431a7d904b60a160c3bd1e94a20c512c6b54c6 (patch)
tree594e3cbde638afc01c964f70cde5e47994c90025 /pymake.conf
parent8e7a23415a7516058be4b18418db2eb9a57edb09 (diff)
downloadbuild-21431a7d904b60a160c3bd1e94a20c512c6b54c6.tar.gz
build-21431a7d904b60a160c3bd1e94a20c512c6b54c6.tar.bz2
build-21431a7d904b60a160c3bd1e94a20c512c6b54c6.tar.xz
build-21431a7d904b60a160c3bd1e94a20c512c6b54c6.zip
Fixed the makefile, this should only be used in clean checkouts when you have
nothing else. It will automatically wget the necesarry files from libbu++ and put them right in your src dir... make clean will delete them as well.
Diffstat (limited to 'pymake.conf')
-rw-r--r--pymake.conf101
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
5CXXFLAGS: -ggdb -Ilibbu++/src
6LDFLAGS: -Llibbu++ -lbu++ -ldl
7
8[BUILD]
9FILE: src/build.y
10COMMAND: stupid
11OUTPUT: parser
12
13[BUILD]
14FILE: src/build.l
15COMMAND: stupid
16OUTPUT: lexer
17
18## A simple command to build everything in this directory, and output
19## an executable with the name 'main'
20[BUILD]
21DIR: src
22COMMAND: exe
23OUTPUT: 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]
59INPUT: .cpp #take input of *.cpp files
60OUTPUT: .o #output .o files
61COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT}
62CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR}
63
64[TRIGGER]
65INPUT: .c #take input of *.cpp files
66OUTPUT: .o #output .o files
67COMMAND: g++ -c {INPUT} {CXXFLAGS} -I{DIR} -o {OUTPUT}
68CHECK: g++ -M {INPUT} {CXXFLAGS} -I{DIR}
69
70[TRIGGER]
71INPUT: .y
72OUTPUT: .tab.c
73COMMAND: cd src; bison ../{INPUT}; cd ..
74
75[TRIGGER]
76INPUT: .l
77OUTPUT: .yy.c
78COMMAND: flex --bison-bridge --bison-locations -o {OUTPUT} {INPUT}
79
80### Executable command ###
81## Use this command if you want a simple executable
82[COMMAND]
83NAME: exe
84COMMAND: g++ {INPUT} {LDFLAGS} -o {OUTPUT}
85
86### Library command ###
87## Use this command if you wish to create a library
88[COMMAND]
89NAME: lib
90COMMAND: ar cr{ARFLAGS} {OUTPUT} {INPUT}
91
92[COMMAND]
93NAME: 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}