home *** CD-ROM | disk | FTP | other *** search
- #
- # /emx/lib/mt/makefile
- #
- GCC=gcc -O -Wall -mprobe
- EMXLIBC=..\..\dll\emxlibc.dll
- I=/emx/include/
- S=$(I)sys/
-
- ASMCMD = $(GCC) -D__MT__ -DOMF -Zomf -c -x assembler-with-cpp
- CCCMD = $(GCC) -D__MT__ -D_EMXLIBC -Zomf -c
-
- .SUFFIXES: .obj .s .c
-
- .c.obj:
- $(CCCMD) $<
-
- .s.obj:
- $(ASMCMD) $<
-
- default: $(EMXLIBC) ..\libmt.a ..\libmt.lib
-
- clean:
- -del *.obj $(DELOPT)
- -del emxlibc.res $(DELOPT)
- -del io1.c $(DELOPT)
- -del io2.s $(DELOPT)
- -del math1.c $(DELOPT)
- -del math2.s $(DELOPT)
- -del malloc1.c $(DELOPT)
- -del str1.c $(DELOPT)
- -del str2.s $(DELOPT)
- -del time1.c $(DELOPT)
- -del hw1.c $(DELOPT)
- -del gcc1.c $(DELOPT)
- -del gcc2.s $(DELOPT)
- -del ctype1.c $(DELOPT)
- -del misc1.c $(DELOPT)
- -del misc2.s $(DELOPT)
- -del process1.c $(DELOPT)
- -del nls1.c $(DELOPT)
- -del emx2.s $(DELOPT)
-
- MTOBJS1 = ..\dll0.obj beginthr.obj thread.obj errnofun.obj iodummy.obj
- MTOBJS2 = startup2.obj revision.obj
- MTOBJS3 = io1.obj io2.obj math1.obj math2.obj malloc1.obj str1.obj str2.obj
- MTOBJS4 = hw1.obj gcc1.obj gcc2.obj ctype1.obj time1.obj
- MTOBJS5 = misc1.obj misc2.obj process1.obj nls1.obj emx2.obj
-
- INCLUDES = $(I)stdio.h $(I)stdlib.h $(S)emx.h
-
- emxlibc.res: makefile
- echo $(MTOBJS1)+ >emxlibc.res
- echo $(MTOBJS2)+ >>emxlibc.res
- echo $(MTOBJS3)+ >>emxlibc.res
- echo $(MTOBJS4)+ >>emxlibc.res
- echo $(MTOBJS5) >>emxlibc.res
-
- beginthr.obj: beginthr.c
- errnofun.obj: errnofun.s
- iodummy.obj: iodummy.s
- revision.obj: revision.c
- startup2.obj: startup2.c
- thread.obj: thread.s
-
- ctype1.obj: ctype1.c $(INCLUDES)
- gcc1.obj: gcc1.c $(INCLUDES)
- gcc2.obj: gcc2.s
- hw1.obj: hw1.c $(INCLUDES)
- io2.obj: io2.s
- malloc1.obj: malloc1.c $(INCLUDES)
- math1.obj: math1.c $(INCLUDES)
- misc1.obj: misc1.c $(INCLUDES)
- misc2.obj: misc2.s
- nls1.obj: nls1.c $(INCLUDES)
- process1.obj: process1.c $(INCLUDES)
- str1.obj: str1.c $(INCLUDES)
- str2.obj: str2.s
- time1.obj: time1.c $(INCLUDES)
-
- emx2.obj: emx2.s ../emx/syscalls.h
- $(ASMCMD) -I../emx emx2.s
-
- math2.obj: math2.s ../math/libm.h
- $(ASMCMD) -I../math math2.s
-
- io1.obj: io1.c $(INCLUDES) ../io/ea.h
- $(CCCMD) -I ../io io1.c
-
- $(EMXLIBC): $(MTOBJS1) $(MTOBJS2) $(MTOBJS3) $(MTOBJS4) $(MTOBJS5) \
- emxlibc.def emxlibc.res
- link386 /noi /noe /nod @emxlibc.res, emxlibc.dll, \
- nul, ..\libemx1 ..\libemx2 ..\libos2, emxlibc;
- copy emxlibc.dll $(EMXLIBC)
- del emxlibc.dll
-
- ..\libmt.a: ..\libmt.lib
- emximp -o $@ ..\libmt.lib
-
- ..\libmt.lib: emxlibc.def
- emximp -o emxlibc.imp emxlibc.def
- emximp -o $@ emxlibc.imp
- -del emxlibc.imp
-