Better build system.
This commit is contained in:
parent
36919d7533
commit
7ac24d5fb5
10
Makefile
10
Makefile
@ -1,22 +1,22 @@
|
||||
# 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.
|
||||
# BSD Make > *
|
||||
include global.mk
|
||||
APPS=phonectl phoned lib scripts
|
||||
APPS=phonectl phoned lib scripts xfone
|
||||
APPSUF=${APPS:S/$/_app/}
|
||||
APPSCLEAN=${APPS:S/$/_cl/}
|
||||
CLEANFILES=.config
|
||||
all: ${APPSUF}
|
||||
${APPSUF}: .config
|
||||
@cd ${@:S/_app$//} && make
|
||||
clean: ${APPSCLEAN} ourclean ${CLEANFILES}
|
||||
clean: ${APPSCLEAN} ourclean
|
||||
${APPSCLEAN}:
|
||||
@cd ${@:S/_cl$//} && make clean
|
||||
ourclean:
|
||||
|
||||
rm -f ${CLEANFILES}
|
||||
.config:
|
||||
./configure.tcl $(PREFIX)
|
||||
./configure.tcl $(PREFIX) ${TESTING}
|
||||
# rm -f .conf
|
||||
#.conf:
|
||||
# @perl -e 'require 5.0001; require Modem::fgetty' \
|
||||
|
@ -1,19 +1,28 @@
|
||||
#!/usr/local/bin/tclsh8.4
|
||||
# Sets up configuration stuff
|
||||
# $Amigan: phoned/configure.tcl,v 1.1 2005/06/27 20:47:37 dcp1990 Exp $
|
||||
if {$argc < 1} {
|
||||
puts stderr "Usage: configure.tcl prefix"
|
||||
# $Amigan: phoned/configure.tcl,v 1.2 2005/06/27 21:05:51 dcp1990 Exp $
|
||||
if {$argc < 2} {
|
||||
puts stderr "Usage: configure.tcl prefix testing"
|
||||
exit -1
|
||||
}
|
||||
set prefix [lindex $argv 0]
|
||||
set testing [lindex $argv 1]
|
||||
puts [list Prefix is [set prefix]...]
|
||||
puts Configuring.
|
||||
set xf [open "xfone/paths.tcl" w]
|
||||
if {!$testing} {
|
||||
puts $xf {# Generated by configure.tcl}
|
||||
puts $xf [list set prefix $prefix]
|
||||
puts $xf {set lib [set prefix]/lib/phoned
|
||||
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
|
||||
#for lack of touch...
|
||||
close [open .config w]
|
||||
|
@ -1,6 +1,7 @@
|
||||
# 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
|
||||
PREFIX=/usr/local
|
||||
CPPFLAGS+=-I/usr/local/include
|
||||
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