| 1 | #
|
|---|
| 2 | # /emx/src/emxbind/makefile
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (c) 1991-1998 by Eberhard Mattes
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of emxbind.
|
|---|
| 7 | #
|
|---|
| 8 | # emxbind 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 | # emxbind 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 emxbind; see the file COPYING. If not, write to the
|
|---|
| 20 | # Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 21 | # Boston, MA 02111-1307, USA.
|
|---|
| 22 | #
|
|---|
| 23 |
|
|---|
| 24 | .SUFFIXES: .c .o
|
|---|
| 25 |
|
|---|
| 26 | BIN=d:\emx\bin\ #
|
|---|
| 27 | LIB=\emx\lib\ #
|
|---|
| 28 | INC=..\include\ #
|
|---|
| 29 | L=d:/emx/lib/
|
|---|
| 30 | I=d:/emx/include/
|
|---|
| 31 | S=$(I)sys/
|
|---|
| 32 |
|
|---|
| 33 | MODDEF=$(L)moddef.a
|
|---|
| 34 |
|
|---|
| 35 | H=$(INC)defs.h emxbind.h
|
|---|
| 36 |
|
|---|
| 37 | CC=gcc
|
|---|
| 38 | CFLAGS=-O -Wall -I../include -DLIST_OPT=1
|
|---|
| 39 | LFLAGS=-s -Zsmall-conv
|
|---|
| 40 |
|
|---|
| 41 | .c.o:
|
|---|
| 42 | $(CC) $(CFLAGS) -c $<
|
|---|
| 43 |
|
|---|
| 44 | default: all
|
|---|
| 45 | all: emxbind
|
|---|
| 46 | emxbind: $(BIN)emxbind.exe
|
|---|
| 47 |
|
|---|
| 48 | OBJS = emxbind.o exec.o fixup.o export.o resource.o cmd.o list.o map.o utils.o
|
|---|
| 49 |
|
|---|
| 50 | emxbind.o: emxbind.c $(H) $(S)moddef.h
|
|---|
| 51 | exec.o: exec.c $(H) $(S)moddef.h $(S)user.h
|
|---|
| 52 | fixup.o: fixup.c $(H)
|
|---|
| 53 | export.o: export.c $(H)
|
|---|
| 54 | resource.o: resource.c $(H)
|
|---|
| 55 | cmd.o: cmd.c $(H)
|
|---|
| 56 | list.o: list.c $(H)
|
|---|
| 57 | map.o: map.c $(H)
|
|---|
| 58 | utils.o: utils.c $(H)
|
|---|
| 59 |
|
|---|
| 60 | $(BIN)emxbind.exe: $(OBJS) $(MODDEF)
|
|---|
| 61 | gcc $(LFLAGS) -o $(BIN)emxbindn.exe $(OBJS) -lmoddef
|
|---|
| 62 | del $(BIN)emxbind.exe
|
|---|
| 63 | ren $(BIN)emxbindn.exe emxbind.exe
|
|---|
| 64 |
|
|---|
| 65 | clean:
|
|---|
| 66 | -del *.o
|
|---|
| 67 |
|
|---|
| 68 | # End of /emx/src/emxbind/makefile
|
|---|