# makefile
#
# Makefile for CFGED
#
# Language        : MAKE
# Operating System: OS/2 V2.0 and higher
# Tool            : OS/2 2.0 NMAKE
#
# $Id: makefile,v 1.2 1992/07/18 01:21:22 gruen Exp $
# $Log: makefile,v $
# Revision 1.2  1992/07/18  01:21:22  gruen
# corrected minor bugs and enhanced makefile with clean and install section.
#
# Revision 1.1  1992/07/17  00:03:43  gruen
# Initial revision
#
#
# Copyright (c) 1992 Lutz Grueneberg
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.  This library 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.  See the GNU Library General Public License for
# more details. You should have received a copy of the GNU Library
# General Public License along with this library; if not, write to the
# Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#

.SUFFIXES: 
.SUFFIXES: .cc .c


.cc.obj:
	gcc -c $*.cc

.c.obj:
	gcc -c $*.c

CC=gcc
CFLAGS=-c 


OBJS= cfged.obj StrDLL.obj cfgfile.obj lbmain.obj prompter.obj pmctool.obj\
	sbrowser.obj about.obj loadcfg.obj
	
PMVPATH = \projects\classes
PMVOBJS = $(PMVPATH)\session.obj $(PMVPATH)\window.obj $(PMVPATH)\dialog.obj\
	  $(PMVPATH)\controls.obj

all: cfged.exe

cfged.exe: $(OBJS) cdlist.obj cfged.def cfged.res
	link386 $(OBJS) cdlist, cfged.exe, , libpmv libgpp,cfged.def
	rc cfged.res

cfged.obj: cfged.cc maindlg.h lbmain.h

StrDLL.obj: StrDLL.cc StrDLL.h Strdefs.h

cfgfile.obj: cfgfile.cc cfgfile.h StrDLL.h StrDefs.h

lbmain.obj:  lbmain.cc lbmain.h cfgfile.h maindlg.h prompter.h sbrowser.h

prompter.obj: prompter.cc prompter.h maindlg.h pmctool.h

sbrowser.obj: sbrowser.cc sbrowser.h maindlg.h prompter.h pmctool.h

about.obj:    about.cc about.h maindlg.h

loadcfg.obj:  loadcfg.cc loadcfg.h maindlg.h StrDLL.h StrDefs.h

pmctool.obj: pmctool.cc pmctool.h

cdlist.s: $(OBJS)
	collect -o cdlist.s $(OBJS) -lpmv -lgpp

cdlist.obj: cdlist.s
	$(CC) $(CFLAGS) cdlist.s

cfged.res: cfged.rc cfged.ico maindlg.dlg
	rc -r cfged

clean:
	del *.obj *.s *.map *.exe *~

install:
	copy cfged.exe c:\usr\bin\os2-32	




