| 1 | #
|
|---|
| 2 | # /emx/src/os2/makefile
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (c) 1992-1998 by Eberhard Mattes
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of emx.
|
|---|
| 7 | #
|
|---|
| 8 | # emx is free software; you can redistribute it and/or modify it
|
|---|
| 9 | # under the terms of the GNU General Public License as published by
|
|---|
| 10 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 11 | # any later version.
|
|---|
| 12 | #
|
|---|
| 13 | # emx is distributed in the hope that it will be useful,
|
|---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | # GNU General Public License for more details.
|
|---|
| 17 | #
|
|---|
| 18 | # You should have received a copy of the GNU General Public License
|
|---|
| 19 | # along with emx; see the file COPYING. If not, write to the
|
|---|
| 20 | # the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 21 | # Boston, MA 02111-1307, USA.
|
|---|
| 22 | #
|
|---|
| 23 | # As special exception, emx.dll can be distributed without source code
|
|---|
| 24 | # unless it has been changed. If you modify emx.dll, this exception
|
|---|
| 25 | # no longer applies and you must remove this paragraph from all source
|
|---|
| 26 | # files for emx.dll.
|
|---|
| 27 | #
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | .SUFFIXES: .obj .asm .c
|
|---|
| 31 |
|
|---|
| 32 | DLL=\emx\dll\ #
|
|---|
| 33 | #DLL=\emx\test\ #
|
|---|
| 34 | I=d:\emx\include\ #
|
|---|
| 35 | MAP=d:\emx\etc\ #
|
|---|
| 36 | LIB=d:\emx\lib\ #
|
|---|
| 37 | LIBS=c.lib $(LIB)mt\sys.lib $(LIB)os2.lib
|
|---|
| 38 |
|
|---|
| 39 | ML=ml -c -Cp -W3 -WX -VM -nologo -Zi
|
|---|
| 40 | CC=gcc
|
|---|
| 41 | CFLAGS=-c -mprobe -fstack-check -O -g -Wall -Werror
|
|---|
| 42 |
|
|---|
| 43 | .asm.obj:
|
|---|
| 44 | $(ML) $<
|
|---|
| 45 |
|
|---|
| 46 | .c.obj:
|
|---|
| 47 | $(CC) $(CFLAGS) $<
|
|---|
| 48 | emxomf -d $*.o
|
|---|
| 49 |
|
|---|
| 50 | default: all
|
|---|
| 51 | all: emx emxio
|
|---|
| 52 | emx: $(DLL)emx.dll
|
|---|
| 53 | emxio: $(DLL)emxio.dll
|
|---|
| 54 |
|
|---|
| 55 | c.lib: $(LIB)mt\c.lib
|
|---|
| 56 | copy $(LIB)mt\c.lib c.lib
|
|---|
| 57 | emxomfar d c.lib crt1 nlsctype
|
|---|
| 58 |
|
|---|
| 59 | OBJECTS = emxdll.obj doscall.obj syscall.obj init.obj memory.obj \
|
|---|
| 60 | process.obj select.obj signal.obj time.obj fileio.obj \
|
|---|
| 61 | ptrace.obj core.obj termio.obj keyboard.obj errors.obj \
|
|---|
| 62 | utils.obj tcpip.obj pm.obj wrapper.obj \
|
|---|
| 63 | xf86sup.obj profil.obj
|
|---|
| 64 |
|
|---|
| 65 | $(DLL)emx.dll: $(OBJECTS) $(LIBS) emxdll.def
|
|---|
| 66 | link386 /nol /noi $(OBJECTS), $(DLL)emx.dbg, $(MAP)emx /map, $(LIBS), \
|
|---|
| 67 | emxdll /nod /deb
|
|---|
| 68 | -emxload -qw
|
|---|
| 69 | link386 /nol /noi $(OBJECTS), $(DLL)emx.dll, $(MAP)emx /map, $(LIBS), \
|
|---|
| 70 | emxdll /nod
|
|---|
| 71 |
|
|---|
| 72 | emxdll.obj: emxdll.asm emxdll.inc
|
|---|
| 73 |
|
|---|
| 74 | core.obj: core.c emxdll.h $(I)sys/user.h reg.h clib.h
|
|---|
| 75 |
|
|---|
| 76 | doscall.obj: doscall.c emxdll.h
|
|---|
| 77 |
|
|---|
| 78 | syscall.obj: syscall.c emxdll.h tcpip.h version.h $(I)sys/timeb.h \
|
|---|
| 79 | $(I)sys/ulimit.h $(I)sys/nls.h
|
|---|
| 80 |
|
|---|
| 81 | fileio.obj: fileio.c emxdll.h files.h $(I)sys/fcntl.h $(I)sys/errno.h \
|
|---|
| 82 | clib.h $(I)sys/types.h $(I)sys/stat.h $(I)sys/ioctl.h \
|
|---|
| 83 | $(I)sys/termio.h $(I)sys/time.h $(I)emx/syscalls.h \
|
|---|
| 84 | $(I)sys/nls.h
|
|---|
| 85 |
|
|---|
| 86 | init.obj: init.c emxdll.h clib.h version.h $(I)emx/startup.h
|
|---|
| 87 |
|
|---|
| 88 | memory.obj: memory.c emxdll.h $(I)sys/builtin.h $(I)sys/fmutex.h
|
|---|
| 89 |
|
|---|
| 90 | pm.obj: pm.c emxdll.h
|
|---|
| 91 |
|
|---|
| 92 | process.obj: process.c emxdll.h files.h clib.h \
|
|---|
| 93 | $(I)sys/signal.h $(I)sys/errno.h $(I)sys/wait.h \
|
|---|
| 94 | $(I)sys/process.h $(I)sys/ptrace.h $(I)emx/syscalls.h \
|
|---|
| 95 | $(I)sys/uflags.h
|
|---|
| 96 |
|
|---|
| 97 | ptrace.obj: ptrace.c $(I)sys/signal.h $(I)sys/ptrace.h $(I)sys/user.h \
|
|---|
| 98 | reg.h $(I)sys/errno.h $(I)sys/uflags.h emxdll.h clib.h
|
|---|
| 99 |
|
|---|
| 100 | select.obj: select.c emxdll.h files.h select.h tcpip.h clib.h \
|
|---|
| 101 | $(I)sys/termio.h $(I)sys/errno.h $(I)sys/types.h \
|
|---|
| 102 | $(I)emx/syscalls.h
|
|---|
| 103 |
|
|---|
| 104 | signal.obj: signal.c emxdll.h wrapper.h \
|
|---|
| 105 | $(I)sys/signal.h $(I)sys/errno.h $(I)sys/uflags.h \
|
|---|
| 106 | $(I)emx/syscalls.h
|
|---|
| 107 |
|
|---|
| 108 | tcpip.obj: tcpip.c emxdll.h files.h tcpip.h select.h clib.h $(I)sys/errno.h \
|
|---|
| 109 | $(I)sys/types.h $(I)sys/stat.h $(I)sys/ioctl.h \
|
|---|
| 110 | $(I)sys/fcntl.h $(I)sys/socket.h $(I)sys/so_ioctl.h \
|
|---|
| 111 | $(I)emx/syscalls.h \
|
|---|
| 112 | $(I)net/route.h $(I)net/if.h $(I)net/if_arp.h $(I)netdb.h
|
|---|
| 113 |
|
|---|
| 114 | termio.obj: termio.c emxdll.h files.h clib.h $(I)sys/errno.h $(I)sys/fcntl.h \
|
|---|
| 115 | $(I)sys/signal.h $(I)sys/ioctl.h $(I)sys/termio.h $(I)termios.h
|
|---|
| 116 |
|
|---|
| 117 | keyboard.obj: keyboard.c emxdll.h clib.h
|
|---|
| 118 |
|
|---|
| 119 | time.obj: time.c emxdll.h $(I)limits.h $(I)sys/timeb.h $(I)sys/time.h
|
|---|
| 120 |
|
|---|
| 121 | errors.obj: errors.c emxdll.h $(I)sys/errno.h
|
|---|
| 122 |
|
|---|
| 123 | utils.obj: utils.c emxdll.h clib.h $(I)sys/nls.h
|
|---|
| 124 |
|
|---|
| 125 | xf86sup.obj: xf86sup.c xf86sup.h files.h select.h emxdll.h clib.h \
|
|---|
| 126 | $(I)sys/errno.h $(I)sys/fcntl.h $(I)sys/ioctl.h \
|
|---|
| 127 | $(I)sys/so_ioctl.h $(I)sys/types.h $(I)sys/termio.h \
|
|---|
| 128 | $(I)termios.h
|
|---|
| 129 |
|
|---|
| 130 | profil.obj: profil.c profil.h emxdll.h clib.h $(I)emx/syscalls.h
|
|---|
| 131 |
|
|---|
| 132 | wrapper.obj: wrapper.c wrapper.h $(I)os2thunk.h
|
|---|
| 133 |
|
|---|
| 134 | $(DLL)emxio.dll: emxio.obj emxio.def
|
|---|
| 135 | link386 /nol emxio, $(DLL)emxio.dll, $(MAP)emxio /map,, emxio
|
|---|
| 136 |
|
|---|
| 137 | emxio.obj: emxio.asm emxdll.inc
|
|---|
| 138 |
|
|---|
| 139 | clean:
|
|---|
| 140 | -del *.obj
|
|---|
| 141 | -del c.lib
|
|---|
| 142 |
|
|---|
| 143 | realclean: clean
|
|---|
| 144 |
|
|---|
| 145 | # End of /emx/src/os2/makefile
|
|---|