Better build system.
This commit is contained in:
parent
36919d7533
commit
7ac24d5fb5
10
Makefile
10
Makefile
@ -1,22 +1,22 @@
|
|||||||
# main makefile...
|
# main makefile...
|
||||||
# $Amigan: phoned/Makefile,v 1.9 2005/06/27 20:57:04 dcp1990 Exp $
|
# $Amigan: phoned/Makefile,v 1.10 2005/06/27 21:05:51 dcp1990 Exp $
|
||||||
# Oh My Fucking God, this is such a big, unportable mess. Oh well.
|
# Oh My Fucking God, this is such a big, unportable mess. Oh well.
|
||||||
# BSD Make > *
|
# BSD Make > *
|
||||||
include global.mk
|
include global.mk
|
||||||
APPS=phonectl phoned lib scripts
|
APPS=phonectl phoned lib scripts xfone
|
||||||
APPSUF=${APPS:S/$/_app/}
|
APPSUF=${APPS:S/$/_app/}
|
||||||
APPSCLEAN=${APPS:S/$/_cl/}
|
APPSCLEAN=${APPS:S/$/_cl/}
|
||||||
CLEANFILES=.config
|
CLEANFILES=.config
|
||||||
all: ${APPSUF}
|
all: ${APPSUF}
|
||||||
${APPSUF}: .config
|
${APPSUF}: .config
|
||||||
@cd ${@:S/_app$//} && make
|
@cd ${@:S/_app$//} && make
|
||||||
clean: ${APPSCLEAN} ourclean ${CLEANFILES}
|
clean: ${APPSCLEAN} ourclean
|
||||||
${APPSCLEAN}:
|
${APPSCLEAN}:
|
||||||
@cd ${@:S/_cl$//} && make clean
|
@cd ${@:S/_cl$//} && make clean
|
||||||
ourclean:
|
ourclean:
|
||||||
|
rm -f ${CLEANFILES}
|
||||||
.config:
|
.config:
|
||||||
./configure.tcl $(PREFIX)
|
./configure.tcl $(PREFIX) ${TESTING}
|
||||||
# rm -f .conf
|
# rm -f .conf
|
||||||
#.conf:
|
#.conf:
|
||||||
# @perl -e 'require 5.0001; require Modem::fgetty' \
|
# @perl -e 'require 5.0001; require Modem::fgetty' \
|
||||||
|
@ -1,19 +1,28 @@
|
|||||||
#!/usr/local/bin/tclsh8.4
|
#!/usr/local/bin/tclsh8.4
|
||||||
# Sets up configuration stuff
|
# Sets up configuration stuff
|
||||||
# $Amigan: phoned/configure.tcl,v 1.1 2005/06/27 20:47:37 dcp1990 Exp $
|
# $Amigan: phoned/configure.tcl,v 1.2 2005/06/27 21:05:51 dcp1990 Exp $
|
||||||
if {$argc < 1} {
|
if {$argc < 2} {
|
||||||
puts stderr "Usage: configure.tcl prefix"
|
puts stderr "Usage: configure.tcl prefix testing"
|
||||||
exit -1
|
exit -1
|
||||||
}
|
}
|
||||||
set prefix [lindex $argv 0]
|
set prefix [lindex $argv 0]
|
||||||
|
set testing [lindex $argv 1]
|
||||||
puts [list Prefix is [set prefix]...]
|
puts [list Prefix is [set prefix]...]
|
||||||
puts Configuring.
|
puts Configuring.
|
||||||
set xf [open "xfone/paths.tcl" w]
|
set xf [open "xfone/paths.tcl" w]
|
||||||
puts $xf {# Generated by configure.tcl}
|
if {!$testing} {
|
||||||
puts $xf [list set prefix $prefix]
|
puts $xf {# Generated by configure.tcl}
|
||||||
puts $xf {set lib [set prefix]/lib/phoned
|
puts $xf [list set prefix $prefix]
|
||||||
|
puts $xf {set lib [set prefix]/lib/phoned
|
||||||
set udom_lib [set lib]/udom.so
|
set udom_lib [set lib]/udom.so
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
puts $xf {# TESTING...generated by configure.tcl}
|
||||||
|
puts $xf [list set pfx [pwd]]
|
||||||
|
puts $xf {set lib [set pfx]/lib/tcl
|
||||||
|
set udom_lib [set lib]/udom.so
|
||||||
|
}
|
||||||
|
}
|
||||||
close $xf
|
close $xf
|
||||||
#for lack of touch...
|
#for lack of touch...
|
||||||
close [open .config w]
|
close [open .config w]
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# global stuff
|
# global stuff
|
||||||
# $Amigan: phoned/global.mk,v 1.4 2005/06/12 15:22:32 dcp1990 Exp $
|
# $Amigan: phoned/global.mk,v 1.5 2005/06/27 21:05:51 dcp1990 Exp $
|
||||||
CC=cc
|
CC=cc
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
CPPFLAGS+=-I/usr/local/include
|
CPPFLAGS+=-I/usr/local/include
|
||||||
LDFLAGS+=-L/usr/local/lib
|
LDFLAGS+=-L/usr/local/lib
|
||||||
|
TESTING=yes
|
||||||
|
9
xfone/Makefile
Normal file
9
xfone/Makefile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# cnd Makefile
|
||||||
|
# (C)2005, Dan Ponte
|
||||||
|
# $Amigan: phoned/xfone/Makefile,v 1.3 2005/06/27 21:05:52 dcp1990 Exp $
|
||||||
|
include ../global.mk
|
||||||
|
# basic stuff. we append for a reason.
|
||||||
|
all:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f paths.tcl *.core *~
|
Loading…
Reference in New Issue
Block a user