home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tools
/
make
/
pdmake
/
makefile.msc
< prev
next >
Wrap
Makefile
|
1990-07-06
|
1KB
|
72 lines
# name of this program
NAME = make
# define the FLAGS as required for MSDOS or Unix
CFLAGS = /Oals /Gs /G2
LDFLAGS = /link /cparmaxalloc:1 /noe /stack:2000 $(LIBS)
SRCS = make.c parse.c build.c tstring.c
OBJS = make.o parse.o build.o tstring.o
PROG = $(NAME)$E
# define your installation directory
BIN = c:/bin
# archive utility
ARCADD = zoo a
# files to archive
ARC1 = decl.h make.h tstring.h make.c parse.c build.c tstring.c default.mk
ARC2 = default.bsd makefile makefile.bsd make.doc README $(PROG)
ARCS = $(ARC1) $(ARC2)
all: $(PROG)
$(PROG): $(OBJS)
echo out of date dependents($@): $?
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)
arc: $(NAME).zoo
zoo: $(NAME).zoo
$(NAME).zoo: $(ARCS)
$(RM) $(NAME).zoo
$(ARCADD) $(NAME).zoo $(ARC1)
$(ARCADD) $(NAME).zoo $(ARC2)
install: $(BIN)/$(PROG) $(BIN)/default.mk
$(BIN)/$(PROG): $(PROG)
cp $(PROG) $(BIN)/$(PROG)
$(BIN)/default.mk: default.mk
cp default.mk $(BIN)/default.mk
clean:
-$(RM) *.o
-$(RM) *.bak
# use this to check the size of the program (use chkdsk if necessary)
size:
pmap
depend:
$(MKDEPEND) $(SRCS) > makefile.new
$(MV) makefile makefile.BAK
$(MV) makefile.new makefile
test: $(OBJS)
echo out of date dependents($@): $?
link @<<END_OF_LINK
$(OBJS)
x$(NAME)
/cparmaxalloc:1 /noe /stack:2000
$(LIBS)
END_OF_LINK
echo End Of Link
# DO NOT DELETE THIS LINE
make.o: make.h tstring.h decl.h
parse.o: make.h tstring.h decl.h
build.o: make.h tstring.h decl.h
tstring.o: tstring.h