########################################################################
#                                                                      #
# fpl.library - A shared library interpreting script langauge.         #
# Copyright (C) 1992-1994 FrexxWare                                    #
# Author: Daniel Stenberg                                              #
#                                                                      #
# This program is free software; you may redistribute for non          #
# commercial purposes only. Commercial programs must have a written    #
# permission from the author to use FPL. FPL is *NOT* public domain!   #
# Any provided source code is only for reference and for assurance     #
# that users should be able to compile FPL on any operating system     #
# he/she wants to use it in!                                           #
#                                                                      #
# You may not change, resource, patch files or in any way reverse      #
# engineer anything in the FPL package.                                #
#                                                                      #
# This program is distributed in the hope that it will be useful,      #
# but WITHOUT ANY WARRANTY; without even the implied warranty of       #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
#                                                                      #
# Daniel Stenberg                                                      #
# Ankdammsgatan 36, 4tr                                                #
# S-171 43 Solna                                                       #
# Sweden                                                               #
#                                                                      #
# FidoNet 2:201/328    email:dast@sth.frontec.se                       #
#                                                                      #
########################################################################

# This is the OS/2 DLL compiling makefile for the IBM C-Set/2 compiler.

TARGET = FBBS
WARNINGS = -Wall -W2 -Wtrd- -Wenu- -Wcnd- -Wgen-
CFLAGS = -Q+ -Sa -Gd+ -Ti+ -O+ $(WARNINGS)
LFLAGS = -Q+ -Ti+
DEFINES= -DUNIX -DOS2
LIBS   = FPL.lib

OBJS   = $(TARGET).obj user.obj mystring.obj comm.obj os.obj files.obj \
	 fplmain.obj 

OBJS2  = memory.obj numexpr.obj stat.obj frontend.obj \
         script.obj hash.obj

all: fpl.dll $(TARGET).exe

.c.obj:
    @cls
    @echo Compiling $*.c
    @icc -C+ $(CFLAGS) $(DEFINES) $*.c

fpl.dll: $(OBJS2)
    @echo Linking FPL.DLL
    @icc -FeFPL -Ge- $(LFLAGS) $(OBJS2) FPL.DEF

$(TARGET).exe: $(OBJS)
    @echo Linking $(TARGET)
    @icc $(LFLAGS) $(OBJS) $(LIBS)

fplmain.obj:  fplmain.c  fplmain.h  stdcode.h
user.obj:     user.c stdcode.h
filesbbs.obj: filesbbs.c filesbbs.h stdcode.h
comm.obj:     comm.c     comm.h     stdcode.h
mystring.obj: mystring.c mystring.h stdcode.h
os.obj:       os.c stdcode.h
files.obj:    files.c files.h colors.h

memory.obj:   memory.c
numexpr.obj:  numexpr.c
stat.obj:     stat.c
frontend.obj: frontend.c
script.obj:   script.c
hash.obj:     hash.c
