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


1.2
date	2000.03.20.15.33.20;	author wk;	state Exp;
branches;
next	1.1;

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


desc
@@


1.2
log
@Quite old changes
@
text
@# [Makefile wk 19.06.97] for the C runtime library

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

OBJS = main.o dllmain.o CRTglob.o hugeval.o dirent.o
OBJS_OLD = ctype_old.o string_old.o
FLEX_OBJS = flexmain.o flexyywrap.o

TARGETS = libmingw32.a libcrtdll.a libmoldname.a CRT_noglob.o libfl.a

.PHONY: all clean install

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

%.o: %.c
	$(GCC) $(CFLAGS) -c $< -o $@@


all: $(TARGETS)

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

libmingw32.a : $(OBJS)
	$(AR) -rv $@@ $^

libcrtdll.a: crtdll.def
	$(DLLTOOL) --dllname crtdll.dll --def crtdll.def \
		   --output-lib $@@ -k --as $(AS)


libmoldname.a : $(OBJS_OLD) moldname.def
	$(DLLTOOL) --dllname crtdll.dll --def moldname.def \
		   --output-lib $@@ -k -U --as $(AS)
	$(AR) -rv $@@ $(OBJS_OLD)

libfl.a : $(FLEX_OBJS)
	$(AR) -rv $@@ $^

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

@


1.1
log
@First check in
@
text
@d7 1
d9 1
a9 1
TARGETS = libmingw32.a libcrtdll.a libmoldname.a CRT_noglob.o
d38 2
@

