head	1.2;
access;
symbols
	V-0-3-0:1.2
	V-0-2-4:1.1
	V-0-2-3:1.1
	V-0-2-2:1.1
	V-0-2-1:1.1
	V-0-2:1.1
	V-0-1:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.01.18.07.18.02;	author wkoch;	state Exp;
branches;
next	1.1;

1.1
date	97.06.23.15.08.03;	author wk;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Some restructuring for version 0.3
@
text
@# [Makefile wk 19.06.97] To create the import libraries

include ../../../config.mk

DEFS := $(wildcard *.def)

LIBS := $(patsubst %.def, lib%.a, $(notdir $(DEFS)))

.PHONY: all clean install

target_dir := $(PREFIX)/${TARGET}

lib%.a: %.def
	$(DLLTOOL) --def $< --output-lib $@@ --as $(AS) \
	    --dllname $(patsubst %.def, %.dll, $(notdir $<)) -k


all: $(LIBS)


install: all
	set -e; for i in $(LIBS) ; do \
	  $(INSTALL) -m 644 $$i $(target_dir)/lib ; done

clean:
	-rm -f *.o *.a *~

@


1.1
log
@First check in
@
text
@d5 1
a5 3
def_path = $(WINDOWS32API_SRC_PATH)/Source

DEFS := $(wildcard $(def_path)/*.def)
a11 2

vpath %.def $(def_path)
@

