home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume13
/
casette-lbl
/
Makefile
< prev
next >
Wrap
Makefile
|
1988-01-31
|
1KB
|
48 lines
CFLAGS = -O
LDFLAGS = -s
CASSETTE = cassette
PRINTLABELS = printlabels
INSTALLDIR = /usr/loc
MANDIR = /usr/man/man1
SHARFILE = cassette.shar
CFILES = input_file.c cassette.c output_ps.c overhead_ps.c
OFILES = input_file.o cassette.o output_ps.o overhead_ps.o
HFILES = cassette.h dimensions.h
MISCFILES = Makefile README cassette.1 \
album1.sample album2.sample double.sample
INSTALLFILES = $(INSTALLDIR)/$(CASSETTE) \
$(INSTALLDIR)/$(PRINTLABELS) \
$(MANDIR)/cassette.1
$(CASSETTE): $(OFILES)
cc $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES)
install: $(INSTALLFILES)
$(INSTALLDIR)/$(CASSETTE): $(CASSETTE)
cp $(CASSETTE) $@
chmod 755 $@
$(INSTALLDIR)/$(PRINTLABELS): $(PRINTLABELS)
cp $(PRINTLABELS) $@
chmod 755 $@
$(MANDIR)/cassette.1: cassette.1
cp cassette.1 $@
chmod 644 $@
$(SHARFILE): $(CFILES) $(HFILES) $(MISCFILES)
shar $(CFILES) $(HFILES) $(MISCFILES) > $@
lint: $(CFILES)
lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
clean:
/bin/rm -f $(OFILES) $(CASSETTE) $(SHARFILE)
tags: $(CFILES)
ctags $(CFILES)