50 lines
1.3 KiB
Cheetah
50 lines
1.3 KiB
Cheetah
#
|
|
# /src/NTP/REPOSITORY/v3/parse/util/Makefile.tmpl,v 3.12 1994/01/25 19:05:39 kardel Exp
|
|
#
|
|
COMPILER= cc
|
|
DEFS=
|
|
DEFS_OPT=
|
|
DEFS_LOCAL=
|
|
CLOCKDEFS=
|
|
INCL=
|
|
COPTS= -O
|
|
INSTALL= install
|
|
BINDIR=
|
|
#
|
|
CFLAGS= $(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL) -I../../include
|
|
CC= $(COMPILER)
|
|
TOP=../../
|
|
#
|
|
EXECS=parsetest testdcf dcfd
|
|
|
|
all:
|
|
@echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
|
|
awk '/-DSTREAM/ && /-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
|
|
END { if (makeit) \
|
|
{ print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" parsetest"; } \
|
|
}' | \
|
|
sh
|
|
@echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
|
|
awk '/-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
|
|
END { if (makeit) \
|
|
{ print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" testdcf"; } \
|
|
}' | \
|
|
sh
|
|
@echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
|
|
awk '/-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
|
|
END { if (makeit) \
|
|
{ print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" dcfd"; } \
|
|
}' | \
|
|
sh
|
|
|
|
clean:
|
|
-@rm -f $(EXECS) *.o
|
|
|
|
distclean: clean
|
|
-@rm -f *.orig *.rej .version Makefile
|
|
|
|
install:
|
|
@echo "--- DCF77 utilities should be installed manually"
|
|
@#[ -f testdcf ] && $(INSTALL) -c -m 0755 testdcf $(BINDIR) || true
|
|
@#[ -f dcfd ] && $(INSTALL) -c -m 0755 dcfd $(BINDIR) || true
|