| 1 | ifndef OLD_EMX_MAKEFILE
|
|---|
| 2 | .c.o:
|
|---|
| 3 | $(MAKE) -C ../.. OPT=dbg out/dbg/omf/src/emxexp/$@
|
|---|
| 4 | else
|
|---|
| 5 | #
|
|---|
| 6 | # /emx/src/emxexp/makefile
|
|---|
| 7 | #
|
|---|
| 8 | # Copyright (c) 1993-1998 by Eberhard Mattes
|
|---|
| 9 | #
|
|---|
| 10 | # This file is part of emxexp.
|
|---|
| 11 | #
|
|---|
| 12 | # emxexp 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 | # emxexp 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 emxexp; see the file COPYING. If not, write to the
|
|---|
| 24 | # Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 25 | # Boston, MA 02111-1307, USA.
|
|---|
| 26 | #
|
|---|
| 27 |
|
|---|
| 28 | BIN=/emx/bin/
|
|---|
| 29 |
|
|---|
| 30 | DEFS_H=../include/defs.h
|
|---|
| 31 | OMFLIB_H=d:/emx/include/sys/omflib.h
|
|---|
| 32 |
|
|---|
| 33 | OMFLIB=d:/emx/lib/omflib.a
|
|---|
| 34 |
|
|---|
| 35 | CC=gcc
|
|---|
| 36 | CFLAGS=-O -Wall -I../include -I.
|
|---|
| 37 | LFLAGS=-s -Zsmall-conv
|
|---|
| 38 |
|
|---|
| 39 | default: all
|
|---|
| 40 | all: emxexp
|
|---|
| 41 | emxexp: $(BIN)emxexp.exe
|
|---|
| 42 |
|
|---|
| 43 | emxexp.o: emxexp.c $(DEFS_H) $(OMFLIB_H)
|
|---|
| 44 | $(CC) $(CFLAGS) -c emxexp.c
|
|---|
| 45 |
|
|---|
| 46 | cplus-de.o: cplus-de.c demangle.h ansidecl.h libibert.h
|
|---|
| 47 | $(CC) $(CFLAGS) -c cplus-de.c
|
|---|
| 48 |
|
|---|
| 49 | $(BIN)emxexp.exe: emxexp.o cplus-de.o $(OMFLIB)
|
|---|
| 50 | $(CC) $(LFLAGS) -o $(BIN)emxexp.exe emxexp.o cplus-de.o $(OMFLIB)
|
|---|
| 51 |
|
|---|
| 52 | clean:
|
|---|
| 53 | -rm *.o
|
|---|
| 54 |
|
|---|
| 55 | realclean: clean
|
|---|
| 56 | -rm $(BIN)emxexp.exe
|
|---|
| 57 |
|
|---|
| 58 | # End of /emx/src/emxexp/makefile
|
|---|
| 59 | endif
|
|---|