#
# Makefile
# Copyright (C) 1996, Onno Hovers
#
# This software 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 software 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 software; see the file COPYING.LIB. If
# not, write to the Free Software Foundation, Inc., 675 Mass Ave,
# Cambridge, MA 02139, USA.  
#

TOPSRC=..
include ../Make.global

EXPORT_DLLS   = kernel32.exp ntdll.exp user32.exp advapi32.exp

OBJS = $(EXPORT_DLLS:.exp=.o)

# implicit rules

.SUFFIXES: .exp

.exp.o:	$(EXPRELAY)
	$(EXPRELAY) $(EXPRELAY_FLAGS) $<
	$(AS) $(ASFLAGS) -o $*.o $*.s

all:	dll.o
	

dll.o:	$(OBJS)
	$(LDR) $(OBJS) -o dll.o

$(EXPRELAY):
	cd ../tools; $(MAKE) exprelay

clean:
	$(RM) *.s *.o *.bak  *~ $(NOERRS)
