=================================================================== RCS file: /cvs/djgpp/djgpp/src/libemu/makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -p -u -r1.1 -r1.2 --- djgpp/src/libemu/makefile 1996/01/24 03:08:36 1.1 +++ /cvs/djgpp/djgpp/src/libemu/makefile 1998/09/27 21:07:54 1.2 @@ -1,32 +1,16 @@ -# Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details +# Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details # Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details -LIB=../../lib -BIN=../../bin -CFLAGS=-O2 +TOP=. +export TOP -all :: \ - $(LIB)/libemu.a \ - $(BIN)/emu387.dxe \ - $E +LIBNAME=emu -$(LIB)/% : % - cp $< $@ +include $(TOP)/../makefile.lib -emu387.o: emu387.cc - gcc $(CFLAGS) -c $< -o $@ - -emudummy.o: emudummy.c - gcc $(CFLAGS) -c $< -o $@ - -libemu.a : emu387.o npxsetup.o ../ident.c - gcc -c -DLIB=libemu ../ident.c -o id_emu.o - ar rs libemu.a emu387.o npxsetup.o id_emu.o - -npxsetup.o : ../libc/emu387/npxsetup.c - gcc $(CFLAGS) -c -DIMBED_EMU387 ../libc/emu387/npxsetup.c -o npxsetup.o - -emu387.dxe : emu387.o emudummy.o - ../../bin/dxegen emu387.dxe __emu_entry emu387.o id_emu.o emudummy.o -L../../lib -lgcc -lc +all :: $(BIN)/emu387.dxe +$(BIN)/emu387.dxe : src/emu387.o src/emudummy.o + $(HOSTBIN)/dxegen.exe $(BIN)/emu387.dxe __emu_entry src/emu387.o id_emu.o src/emudummy.o -L../../lib $(LIBGCCA) -lc $(LIBGCCA) + clean :: - -rm -f emu387.dxe *.o libemu.a + $(MISC) rm makefile.sub