File: Imakefile

package info (click to toggle)
titrax 1.98.1-1
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 216 kB
  • ctags: 570
  • sloc: ansic: 1,587; perl: 876; makefile: 556; sh: 26
file content (108 lines) | stat: -rw-r--r-- 3,308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108

# Installation options
#=====================
# The place where you install local programs (not X)
NONXBINDIR = /local/bin
#
# PERLLIBDIR should be the output from perl -e 'print "@INC[0]\n"'
PERLLIBDIR = /usr/lib/perl
# PERL - where your Perl executable is located (is in sumtitra)
PERL = $(NONXBINDIR)/perl
#
# Uncomment this line if you have XAw3d and want to use it
# XAWLIB = -lXaw3d
#
# If you want to stop UDP packets to the author, uncomment this
# CDEBUGFLAGS = -DDO_NOT_TELL_ABOUT_ME
#
# If you have problems with undefined variables, you may have
# hit the linker bug with SunOS 4.1.2 and X11R4; uncomment this line
# LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) -Bstatic
#
#
# Titrax configuration - touch only if you know what you are doing
#================================================================
LOCAL_LIBRARIES = XawClientLibs
DEPLIBS = XawClientDepLibs
# These are my private debugflags
# I run with GCC and protoized functions.
#CC   = gcc
#CDEBUGFLAGS = -g -DDEBUG -Wall
SRCS = titrax.c projectlist.c udping.c
OBJS = titrax.o projectlist.o udping.o

SHAR1 = README  Imakefile  $(SRCS)
SHAR2 = patchlevel.h titrax.h titrax.xbm \
        Titrax.ad titrax.man sumtitra.man \
	sumtitra weekno.perl .indent.pro Makefile ad2c \
	titrat \
	TODO CONTRIBUTIONS
SHARS = $(SHAR1) $(SHAR2)

VERSIONDIR = titra-1.98
LASTVERSION = V1_97
# Do not use -x option, because this gives too many errors with X
# functions that are declared, but not used
LINTOPTS = -az

all:: titrax sumtitra titrat
depend:: Titrax_ad.h

ComplexProgramTarget(titrax)
InstallAppDefaults(Titrax)
InstallProgram(sumtitra,$(NONXBINDIR))
InstallProgram(titrat,$(NONXBINDIR))
InstallManPage(sumtitra,$(MANDIR))
InstallNonExec(weekno.perl,$(PERLLIBDIR))

Titrax_ad.h: Titrax.ad
	./ad2c  Titrax.ad >Titrax_ad.h || rm Titrax_ad.h

titrax.o: Titrax_ad.h
# Modifying PERL scripts - technique courtesy of Lindsay (of Zircon fame)
sumtitra: Makefile
	mv sumtitra sumtitra.tmp
	echo '#!$(PERL)' > sumtitra
	tail +2 sumtitra.tmp >> sumtitra
	rm sumtitra.tmp
titrat: Makefile
	mv titrat titrat.tmp
	echo '#!$(PERL)' > titrat
	tail +2 titrat.tmp >> titrat
	rm titrat.tmp

#------------------------------------------------------------------
# Everything below this line should be only for release and debugging,
# and not terribly interesting!
#-------------------------------------------------------------------
# Testing the program
# Must load resources in order to override global resources from old versions
test: titrax
	sed -e 's/^\*/titrax-debug*/' Titrax.ad | xrdb -merg
	TIMETRACKDIR=`pwd`/test.titrax;export TIMETRACKDIR;./titrax -name titrax-debug
etags: $(SRCS)
	etags --typedefs $(SRCS)

indent: $(SRCS)
	indent titrax.c
	indent projectlist.c
	indent titrax.h
	indent udping.c
tar: $(SHARS)
	tar chf titrax.tar $(SHARS)
	rm -f titrax.tar.Z
	compress titrax.tar
release: $(SHARS)
	rm -rf $(VERSIONDIR)
	mkdir $(VERSIONDIR)
	cp $(SHARS) $(VERSIONDIR)
	(cd $(VERSIONDIR); make Makefile Titrax_ad.h)
	(cd $(VERSIONDIR); unprotoize titrax.c projectlist.c udping.c)
	rm $(VERSIONDIR)/?*.save $(VERSIONDIR)/Titrax_ad.h
	tar zchf $(VERSIONDIR).tar.gz $(VERSIONDIR)

# Some make commands for stuff that is not distributed
udplisten: udplisten.o
	$(CC) -o $@ udplisten.o
udping: udpingtest.o udping.o
	$(CC) -o $@ udpingtest.o udping.o