#
# /emx/src/lib/dllrt/makefile
#
LIBBASE=c_dllrt
.INCLUDE: /emx/src/lib/libc0.mak
APP=../../app/

local: ;

crt3.o: crt3.s
dllinit.o: dllinit.c

crt2.o: $(APP)crt2.s
	$(GCC) -c -x assembler-with-cpp -I. $(APP)crt2.s

getenv.o: $(APP)getenv.c $(I)stdlib.h $(I)string.h
	$(GCC) -c $(APP)getenv.c

putenv.o: $(APP)putenv.c $(I)stdlib.h $(I)string.h
	$(GCC) -c $(APP)putenv.c

iodata.o: $(APP)iodata.c $(E) $(FCNTL)
	$(GCC) -c -D_NFILES=256 $(APP)iodata.c

stdio.o: $(APP)stdio.c $(E) $(FCNTL)
	$(GCC) -c -D_NFILES=256 $(APP)stdio.c

$(DSTLIB): crt2.o crt3.o dllinit.o getenv.o iodata.o putenv.o stdio.o
	-$(AR) d $(DSTLIB) __.SYMDEF
	$(AR) r $(DSTLIB) *.o
	$(AR) s $(DSTLIB)
