source: trunk/emx/src/emxomf/makefile@ 3721

Last change on this file since 3721 was 480, checked in by bird, 22 years ago

Just some convenience hack.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.4 KB
Line 
1ifndef OLD_EMX_MAKEFILE
2.c.o:
3 $(MAKE) -C ../.. OPT=dbg out/dbg/omf/src/emxomf/$@
4else
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
30BIN=\emx\bin\ #
31I=d:/emx/include/
32S=$(I)sys/
33L=d:/emx/lib/
34
35OMFLIB=$(L)omflib.a
36DEFS_H=../include/defs.h
37CC=gcc
38CFLAGS=-c -O -Wall -I../include
39LFLAGS=-s -Zsmall-conv
40
41.c.o:
42 $(CC) $(CFLAGS) $<
43
44default: all
45all: emxomf emxomfar emxomfld emxaout listomf
46emxomf: $(BIN)emxomf.exe
47emxomfar: $(BIN)emxomfar.exe
48emxomfld: $(BIN)emxomfld.exe
49emxaout: $(BIN)emxaout.exe
50listomf: $(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
72emxomf.o: emxomf.c emxomf.h stabshll.h grow.h $(DEFS_H) $(S)omflib.h
73stabshll.o: stabshll.c emxomf.h stabshll.h grow.h $(DEFS_H)
74grow.o: grow.c grow.h $(DEFS_H)
75emxomfar.o: emxomfar.c $(S)omflib.h
76emxomfld.o: emxomfld.c $(DEFS_H) $(S)moddef.h
77emxaout.o: emxaout.c grow.h $(DEFS_H)
78listomf.o: listomf.c $(DEFS_H)
79
80clean:
81 -del *.o
82
83realclean:
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
91endif
Note: See TracBrowser for help on using the repository browser.