home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume34
/
ison
/
part01
/
Makefile
< prev
Wrap
Makefile
|
1992-12-06
|
852b
|
53 lines
# IsOn's Makefile
# Source file name minus .c, and compiled exectuable's pathname.
CFILE=ison
OFILE=ison
# Your favorite C Compiler, and flags.
CC=cc
CFLAGS=-O
LFLAGS=-s
# Definitions can be:
# -DBSD: If your system uses index instead of strchr.
DEFS=
README=$(CFILE).readme
PACKAGE=$(CFILE).c $(README) $(CFILE).1 Makefile
all:
$(CC) $(CFLAGS) $(DEFS) $(CFILE).c -o $(OFILE) $(LFLAGS)
@ls -l $(CFILE)
shar:
shar $(PACKAGE) | cat $(README) - > $(CFILE).shar
tar:
tar cvf - $(PACKAGE) | compress -f > $(CFILE).tar.Z
clean:
rm -f core $(OFILE)
clobber: clean
rm -i $(PACKAGE)
# I use these during development:
lint:
lint $(CFILE).c > $(CFILE).lint
debug:
$(CC) -g $(DEFS) $(CFILE).c -o $(OFILE)
@ls -l $(OFILE)
mips:
cc -O3 -s $(DEFS) $(CFILE).c -o $(OFILE)
@rm -f $(CFILE).u
@ls -l $(OFILE)
rz:
rm -f $(CFILE).c
rz -e
make