| 1 | ifndef OLD_EMX_MAKEFILE
|
|---|
| 2 | .c.o:
|
|---|
| 3 | $(MAKE) -C ../.. OPT=dbg out/dbg/omf/src/emxomf/$@
|
|---|
| 4 | else
|
|---|
| 5 | #
|
|---|
| 6 | # /emx/src/emxomf/makefile
|
|---|
| 7 | #
|
|---|
| 8 | # Copyright (c) 1992-1998 Eberhard Mattes
|
|---|
| 9 | #
|
|---|
| 10 | # This file is part of emx.
|
|---|
| 11 | #
|
|---|
| 12 | # emx is free software; you can redistribute it and/or modify it
|
|---|
| 13 | # under the terms of the GNU General Public License as published by
|
|---|
| 14 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 15 | # any later version.
|
|---|
| 16 | #
|
|---|
| 17 | # emx is distributed in the hope that it will be useful,
|
|---|
| 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 20 | # GNU General Public License for more details.
|
|---|
| 21 | #
|
|---|
| 22 | # You should have received a copy of the GNU General Public License
|
|---|
| 23 | # along with emx; see the file COPYING. If not, write to the
|
|---|
| 24 | # the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 25 | # Boston, MA 02111-1307, USA.
|
|---|
| 26 | #
|
|---|
| 27 |
|
|---|
| 28 | .SUFFIXES: .c .o
|
|---|
| 29 |
|
|---|
| 30 | BIN=\emx\bin\ #
|
|---|
| 31 | I=d:/emx/include/
|
|---|
| 32 | S=$(I)sys/
|
|---|
| 33 | L=d:/emx/lib/
|
|---|
| 34 |
|
|---|
| 35 | OMFLIB=$(L)omflib.a
|
|---|
| 36 | DEFS_H=../include/defs.h
|
|---|
| 37 | CC=gcc
|
|---|
| 38 | CFLAGS=-c -O -Wall -I../include
|
|---|
| 39 | LFLAGS=-s -Zsmall-conv
|
|---|
| 40 |
|
|---|
| 41 | .c.o:
|
|---|
| 42 | $(CC) $(CFLAGS) $<
|
|---|
| 43 |
|
|---|
| 44 | default: all
|
|---|
| 45 | all: emxomf emxomfar emxomfld emxaout listomf
|
|---|
| 46 | emxomf: $(BIN)emxomf.exe
|
|---|
| 47 | emxomfar: $(BIN)emxomfar.exe
|
|---|
| 48 | emxomfld: $(BIN)emxomfld.exe
|
|---|
| 49 | emxaout: $(BIN)emxaout.exe
|
|---|
| 50 | listomf: $(BIN)listomf.exe
|
|---|
| 51 |
|
|---|
| 52 | $(BIN)emxomf.exe: emxomf.o stabshll.o grow.o $(OMFLIB)
|
|---|
| 53 | -emxload -uw $(BIN)emxomf
|
|---|
| 54 | gcc $(LFLAGS) -o $(BIN)emxomf.exe emxomf.o stabshll.o grow.o -lomflib
|
|---|
| 55 |
|
|---|
| 56 | $(BIN)emxomfar.exe: emxomfar.o $(OMFLIB)
|
|---|
| 57 | -emxload -uw $(BIN)emxomfar
|
|---|
| 58 | gcc $(LFLAGS) -o $(BIN)emxomfar.exe emxomfar.o -lomflib
|
|---|
| 59 |
|
|---|
| 60 | $(BIN)emxomfld.exe: emxomfld.o $(L)moddef.a
|
|---|
| 61 | -emxload -uw $(BIN)emxomfld
|
|---|
| 62 | gcc $(LFLAGS) -o $(BIN)emxomfld.exe emxomfld.o -lmoddef
|
|---|
| 63 | emxbind -qa $(BIN)emxomfld.exe -p
|
|---|
| 64 |
|
|---|
| 65 | $(BIN)emxaout.exe: emxaout.o grow.o
|
|---|
| 66 | -emxload -uw $(BIN)emxaout
|
|---|
| 67 | gcc $(LFLAGS) -o $(BIN)emxaout.exe emxaout.o grow.o
|
|---|
| 68 |
|
|---|
| 69 | $(BIN)listomf.exe: listomf.o
|
|---|
| 70 | gcc $(LFLAGS) -o $(BIN)listomf.exe listomf.o
|
|---|
| 71 |
|
|---|
| 72 | emxomf.o: emxomf.c emxomf.h stabshll.h grow.h $(DEFS_H) $(S)omflib.h
|
|---|
| 73 | stabshll.o: stabshll.c emxomf.h stabshll.h grow.h $(DEFS_H)
|
|---|
| 74 | grow.o: grow.c grow.h $(DEFS_H)
|
|---|
| 75 | emxomfar.o: emxomfar.c $(S)omflib.h
|
|---|
| 76 | emxomfld.o: emxomfld.c $(DEFS_H) $(S)moddef.h
|
|---|
| 77 | emxaout.o: emxaout.c grow.h $(DEFS_H)
|
|---|
| 78 | listomf.o: listomf.c $(DEFS_H)
|
|---|
| 79 |
|
|---|
| 80 | clean:
|
|---|
| 81 | -del *.o
|
|---|
| 82 |
|
|---|
| 83 | realclean:
|
|---|
| 84 | -del $(BIN)emxomf.exe
|
|---|
| 85 | -del $(BIN)emxomfar.exe
|
|---|
| 86 | -del $(BIN)emxomfld.exe
|
|---|
| 87 | -del $(BIN)emxaout.exe
|
|---|
| 88 | -del $(BIN)listomf.exe
|
|---|
| 89 |
|
|---|
| 90 | # End of /emx/src/emxomf/makefile
|
|---|
| 91 | endif
|
|---|