home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
bin
/
p205.zip
/
exesrc
/
makefile
< prev
next >
Wrap
Makefile
|
1994-12-18
|
2KB
|
77 lines
###############################################################################
# #
# Makefile for P.EXE. #
# #
# Copyright (c) 1994 by Jyrki Salmi <jytasa@jyu.fi> #
# You may modify, recompile and distribute this file freely. #
# #
# !! NOTE: GNU MAKE IS REQUIRED !! #
# #
###############################################################################
# Define the compiler you want to use.
#
# GCC for EMX/GCC
#
# ICC for IBM's Cset++
COMPILER = GCC
#COMPILER = ICC
%.obj : %.c
$(CC) $(CFLAGS) $<
SRCS = \
brw.c \
callback.c \
common.c \
dir.c \
error.c \
global.c \
p.c \
p_dll.c \
tcpipapi.c \
tl.c
OBJS = $(SRCS:.c=.obj)
LIBS =
DEFS = p.def
ifeq ($(COMPILER), GCC)
CC = gcc
CFLAGS = -Zomf -Zsys -Wall -c -O2
LD = gcc
LDFLAGS = -Zomf -Zsys -s -o p.exe $(OBJS) $(DEFS)
endif
ifeq ($(COMPILER), ICC)
CC = icc
CFLAGS = /Q /O /C
LD = link386
LDFLAGS = /nol $(OBJS), p.exe, nul, $(LIBS) os2386.lib dde4sbs.lib, $(DEFS)
endif
p.exe: $(OBJS) $(DEFS)
$(LD) $(LDFLAGS)
rc p
depend:
makedepend -o.obj $(SRCS)
$(OBJS): makefile
# DO NOT DELETE THIS LINE -- make depend depends on it.
brw.obj: typedefs.h brw.h
callback.obj: typedefs.h p.h callback.h common.h brw.h error.h global.h tl.h
callback.obj: modules.h
common.obj: typedefs.h common.h error.h modules.h global.h brw.h tl.h p.h
dir.obj: typedefs.h dir.h
error.obj: typedefs.h errmsgs.h tcpipapi.h
global.obj: typedefs.h tl.h brw.h p.h
p.obj: typedefs.h p.h callback.h p_dll.h tcpipapi.h global.h brw.h tl.h
p.obj: common.h usage.h
p_dll.obj: typedefs.h common.h p.h p_dll.h error.h modules.h
tcpipapi.obj: p.h typedefs.h tcpipapi.h error.h modules.h
tl.obj: typedefs.h common.h dir.h tl.h global.h brw.h p.h