| 1 | #
|
|---|
| 2 | # /emx/src/emxdoc/makefile
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (c) 1993-1999 by Eberhard Mattes
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of emxdoc.
|
|---|
| 7 | #
|
|---|
| 8 | # emxdoc 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 | # emxdoc 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 emxdoc; 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 |
|
|---|
| 28 | CC=gcc
|
|---|
| 29 | CFLAGS=-O -Wall
|
|---|
| 30 | LFLAGS=-s -Zsmall-conv
|
|---|
| 31 | #CFLAGS=-g -Wall
|
|---|
| 32 | #LFLAGS=-g
|
|---|
| 33 |
|
|---|
| 34 | .c.o:
|
|---|
| 35 | $(CC) $(CFLAGS) -c $<
|
|---|
| 36 |
|
|---|
| 37 | default: all
|
|---|
| 38 | all: emxdoc
|
|---|
| 39 | emxdoc: $(BIN)emxdoc.exe
|
|---|
| 40 |
|
|---|
| 41 | emxdoc.o: emxdoc.c emxdoc.h html.h ipf.h latex.h text.h xref.h cond.h
|
|---|
| 42 | input.o: input.c emxdoc.h cond.h
|
|---|
| 43 | cond.o: cond.c emxdoc.h cond.h
|
|---|
| 44 | html.o: html.c emxdoc.h html.h xref.h
|
|---|
| 45 | ipf.o: ipf.c emxdoc.h ipf.h xref.h
|
|---|
| 46 | latex.o: latex.c emxdoc.h latex.h
|
|---|
| 47 | text.o: text.c emxdoc.h lb.h text.h
|
|---|
| 48 | xref.o: xref.c emxdoc.h xref.h
|
|---|
| 49 | lb.o: lb.c lb.h
|
|---|
| 50 |
|
|---|
| 51 | $(BIN)emxdoc.exe: emxdoc.o input.o cond.o html.o ipf.o latex.o text.o \
|
|---|
| 52 | xref.o lb.o
|
|---|
| 53 | gcc $(LFLAGS) -o $(BIN)emxdoc.exe emxdoc.o input.o cond.o \
|
|---|
| 54 | html.o ipf.o latex.o text.o xref.o lb.o
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | clean:
|
|---|
| 58 | -del *.o
|
|---|
| 59 |
|
|---|
| 60 | realclean: clean
|
|---|
| 61 | -del $(BIN)emxdoc.exe
|
|---|
| 62 |
|
|---|
| 63 | # End of /emx/src/emxdoc/makefile
|
|---|