#
# WBLaunch Makefile
# part of WBLaunch - emulates WB startup of programs from the Shell
# Copyright (C) 1998, 1999 Stephen Williams <sw@fysh.org>
# wbstart.library is copyright (C) Stefan Becker
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# 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.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
########################################################################
#
# This works for me.  You might need to alter the data model flags, or
# the libraries (e.g. if you have names your small data libraries
# "amigas.lib" and "vcs.lib")
#
# This makefile is for GNU Make, but will probably work with other
# make utilities as well (not DMake though!)
#

OBJS = startup30shell.o wblaunch.o
SRCS = startup30shell.c wblaunch.c

CC = vc
CFLAGS = -c -sc -sd -g
LFLAGS = -nostdlib
LIBS = -lwbstart -lvc -lamiga

all : WBLaunch

WBLaunch : $(OBJS)
	$(CC) $(LFLAGS) -o WBLaunch $(OBJS) -lwbstart -lvc -lamiga
	protect WBLaunch +p

.c.o :
	$(CC) $(CFLAGS) $<
