#
# /emx/src/lib/static/makefile
#
.INCLUDE: /emx/src/lib/lib0.mak

.SOURCE.c: ..
.SOURCE.h: ..
.SOURCE.s: ..

.PHONY: clean default dstlib static

LIBSTATIC=$(L)c_static.a

default: static

static .SETDIR=$(CPU):
	$(MAKE) -f ../makefile dstlib $(PASSDOWN)

dstlib: $(LIBSTATIC)

clean:
	-del $(CPU)\*.o $(DELOPT)

dllinit.o: dllinit.c

main.o:    ../../gcc/main.c
	$(GCC) -c ../../gcc/main.c


ctor.o:    ../../startup/ctor.c
	$(GCC) -c ../../startup/ctor.c

dtor.o:    ../../startup/dtor.c
	$(GCC) -c ../../startup/dtor.c

$(LIBSTATIC): main.o dllinit.o ctor.o dtor.o
	$(AR) r $(LIBSTATIC) *.o
