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
|
/*
* ======================================================================
*/
/*
* Never edit any of the rest of this file unless you really really
* know what you're doing. The rest of this file should normally not
* be touched at all.
*/
DEPLIBS =
LOCAL_LIBRARIES = XawClientLibs
/* SYS_LIBRARIES = -lm */
SRCS = Seyon.c SeActions.c SeScan.c SeDial.c SeErr.c SeGeneric.c \
SeInit.c SeIo.c SeMisc.c SeParse.c SePort.c SeScript.c \
SeSet.c SeSig.c SeString.c SeSubs.c SeSubsX.c SeSupp.c \
SeTerm.c SeTrans.c SeWin.c MultiList.c
OBJS = Seyon.o SeActions.o SeScan.o SeDial.o SeErr.o SeGeneric.o \
SeInit.o SeIo.o SeMisc.o SeParse.o SePort.o SeScript.o \
SeSet.o SeSig.o SeString.o SeSubs.o SeSubsX.o SeSupp.o \
SeTerm.o SeTrans.o SeWin.o MultiList.o
HELPFILE = -DHELPFILE=\"/usr/share/seyon/seyon.help\"
/* These are apparently missing from versions of X prior to R5 */
#ifndef InstallNonExecFile
#define InstallNonExecFile(file,dest) @@\
install:: file @@\
$(INSTALL) -c $(INSTDATFLAGS) file $(DESTDIR)dest
#endif /* InstallNonExecFile */
#ifndef InstallAppDefaultsLong
#define InstallAppDefaultsLong(file,class) @@\
install:: file.ad @@\
$(INSTALL) -c $(INSTAPPFLAGS) file.ad $(DESTDIR)$(XAPPLOADDIR)/class
#endif /* InstallAppDefaultsLong */
AllTarget(version seyon)
ComplexProgramTarget(seyon)
SpecialObjectRule(SeInit.o,SeInit.c,$(HELPFILE))
InstallAppDefaults(Seyon)
InstallAppDefaultsLong(Seyon-co,Seyon-color)
InstallAppDefaultsLong(Seyon,Seyon)
InstallNonExecFile(seyon.help,/usr/share/seyon)
install::
/*
@if [ ! -d $(HOME)/.seyon ]; then mkdir $(HOME)/.seyon; fi; \
echo "=== Copying example files (no overwrite) to $(HOME)/.seyon ..."; \
for i in phonelist protocols startup script.*; do \
if [ ! -f $(HOME)/.seyon/$$i ]; then cp $$i $(HOME)/.seyon; fi;\
done;
*/
clean::
rm -f version.h y.tab.* SeParse.c Seyon.ad.h
Seyon.c: Seyon.ad.h version.h
Seyon.ad.h: Seyon.ad
./ad2c $? > $@
version:
rm -f version.h
version.h:
sh ./makever.sh
SeScan.o: y.tab.h
y.tab.h y.tab.c: SeParse.y
$(YACC) -d SeParse.y
SeParse.c: SeParse.y
$(MV) y.tab.c SeParse.c
|