DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: M T

⟦67827f279⟧ TextFile

    Length: 4060 (0xfdc)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/others/quipu/photo/Makefile« 

TextFile

###############################################################################
#   Instructions to Make, for compilation of QUIPU photo programs
###############################################################################

###############################################################################
#
# $Header: /f/osi/others/quipu/photo/RCS/Makefile,v 7.0 89/11/23 22:01:31 mrose Rel $
#
#
# $Log:	Makefile,v $
# Revision 7.0  89/11/23  22:01:31  mrose
# Release 6.0
# 
###############################################################################

###############################################################################
#
#				 NOTICE
#
#    Acquisition, use, and distribution of this module and related
#    materials are subject to the restrictions of a license agreement.
#    Consult the Preface in the User's Manual for the full terms of
#    this agreement.
#
###############################################################################


# should really go in config/CONFIG.make
DISPLAY = ttyphoto hexphoto
# DISPLAY = sunphoto Xphoto ttyphoto hexphoto t4014


#######################################################################

DEC     = decode.o build_trees.o 
ENC     = encode.o code_word.o 
UTIL    = interface.o 


all:    libphoto.a $(DISPLAY)

lint:
	$(LINT) $(LFLAGS) decode.c build_trees.c interface.c d_main.c tty.c

libphoto.a: $(DEC) $(UTIL)
	-rm -f $@
	@$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(DEC) $(UTIL)

pr2pe: $(ENC) $(UTIL) e_main.o
	$(LDCC) $(LDFLAGS) -o pr2pe e_main.o $(ENC) $(UTIL) -lpixrect

sunphoto: libphoto.a d_main.o sunview.o
	$(LDCC) $(LDFLAGS) -o sunphoto  \
		d_main.o libphoto.a sunview.o -lsuntool -lsunwindow -lpixrect

Xphoto: libphoto.a d_main.o winx.o
	$(LDCC) $(LDFLAGS) -o Xphoto \
		d_main.o libphoto.a winx.o -lX11

t4014: libphoto.a d_main.o t4014.o
	$(LDCC) $(LDFLAGS) -o t4014 \
		d_main.o libphoto.a t4014.o -l4014 -lm

ttyphoto: libphoto.a d_main.o tty.o
	$(LDCC) $(LDFLAGS) -o ttyphoto \
		d_main.o  libphoto.a tty.o

hexphoto: hexphoto.o d_main.o
	$(LDCC) $(LDFLAGS) -o hexphoto hexphoto.o d_main.o 

decode.o: decode.c $(HDIR)quipu/photo.h
	$(CC) -c $(CFLAGS) -DFAXDIR=\"$(SBINDIR)g3fax\" $*.c


###############################################################################
# some programs for Jef Poskanzer's pbm package
###############################################################################

PBMDIR	=	/usr/src/pbm/
LIBPBM	=	$(PBMDIR)pbm/libpbm.a

pbm:		faxtopbm pbmtofax

faxtopbm:	faxtopbm.o libphoto.a $(LIBPBM)
		$(LDCC) $(LDFLAGS) -o $@ faxtopbm.o libphoto.a $(LIBPBM) \
			$(TOPDIR)libisode.a $(LSOCKET)

faxtopbm.o:	faxtopbm.c
		$(CC) $(CFLAGS) -I$(PBMDIR) -c faxtopbm.c

pbmtofax:	pbmtofax.o encode.o code_word.o interface.o $(LIBPBM)
		$(LDCC) $(LDFLAGS) -o $@ pbmtofax.o encode.o code_word.o \
			interface.o $(LIBPBM)

pbmtofax.o:	pbmtofax.c
		$(CC) $(CFLAGS) -I$(PBMDIR) -c pbmtofax.c


#####################################################################
install:  inst-all clean

inst-all:  $(SBINDIR)g3fax inst-disp

inst-disp: $(DISPLAY) libphoto.a
	-mv $(SBINDIR)g3fax/ttyphoto zttyphoto
	-cp ttyphoto $(SBINDIR)g3fax/ttyphoto
	-mv $(SBINDIR)g3fax/hexphoto zhexphoto
	-cp hexphoto $(SBINDIR)g3fax/hexphoto
	-mv $(SBINDIR)g3fax/sunphoto zsunphoto
	-cp sunphoto $(SBINDIR)g3fax/sunphoto
	-mv $(SBINDIR)g3fax/Xphoto zXphoto
	-cp Xphoto $(SBINDIR)g3fax/Xphoto
	-mv $(SBINDIR)g3fax/t4014 zt4014
	-cp t4014 $(SBINDIR)g3fax/t4014
	-rm -f $(SBINDIR)g3fax/libphoto.a
	cp libphoto.a $(SBINDIR)g3fax/libphoto.a
	@$(UTILDIR)make-lib.sh $(SYSTEM) $(SBINDIR)g3fax/libphoto.a -ranlib
	-@ls -gls $(SBINDIR)g3fax/libphoto.a
	-@echo ""

inst-pr2pe: pr2pe
	-mv $(SBINDIR)g3fax/pr2pe zpr2pe
	-cp pr2pe $(SBINDIR)g3fax/pr2pe

inst-pbm:	pbm
	-mv $(SBINDIR)g3fax/faxtopbm zfaxtopbm
	-mv $(SBINDIR)g3fax/pbmtofax zpbmtofax
	-cp faxtopbm pbmtofax $(SBINDIR)g3fax/

$(SBINDIR)g3fax:  g3fax
	-rm -rf $@
	-cp -r g3fax $(SBINDIR)

clean:
	rm -f _* *.o *.old *% foo* core z* *.a \
		*.orig \
		sunphoto hexphoto ttyphoto \
		pr2pe Xphoto t4014 \
		faxtopbm pbmtofax