home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tools
/
make
/
gymake12
/
makefile
< prev
next >
Wrap
Makefile
|
1988-11-18
|
1KB
|
57 lines
# name of this program
NAME = make
# DOS uses a .exe extension, Unix does not
#EXE =
EXE = .exe
# define the FLAGS as required for MSDOS or Unix
#CFLAGS = -O
CFLAGS = /Oals /Gs
#LDFLAGS =
LDFLAGS = /link /cparmaxalloc:1 /noe /stack:2000
OBJS = make.o parse.o tstring.o
PROG = $(NAME)$(EXE)
# define your installation directory
#BIN = /z/greggy/bin
BIN = c:/bin
# archive utility
#ARCADD = arc a
ARCADD = pkarc a
# files to archive
ARCS = decl.h make.h tstring.h make.c parse.c tstring.c \
default.mk makefile make.doc README $(PROG)
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)
arc: $(NAME).arc
$(NAME).arc: $(ARCS)
$(RM) $(NAME).arc
$(ARCADD) $(NAME).arc $(ARCS)
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 *.bak
# use this to check the size of the program (use chkdsk if necessary)
size:
pmap
# and of course, the object file dependencies
make.o: make.h tstring.h
parse.o: make.h tstring.h
tstring.o: tstring.h