#
# /emx/src/emxexp/makefile
#
# Copyright (c) 1993 Eberhard Mattes
#
# This file is part of emxexp.
#
# See COPYING for details.
#

BIN=/emx/bin/
LIBIBERTY=d:/emx/gnu/libibert/
GNUINCLUDE=d:/emx/gnu/include/

# emx include files (there's also a getopt.h in $(GNUINCLUDE)!
EMXINCLUDE=d:/emx/include/

DEFS_H=../include/defs.h
OMFLIB_H=../include/omflib.h

OMFLIB=/emx/lib/omflib.a

CC=gcc
CFLAGS=-O -Wall -I../include -I../emxomf -I$(EMXINCLUDE) -I$(GNUINCLUDE)

default:	all
all:		emxexp
emxexp:	$(BIN)emxexp.exe

emxexp.o: emxexp.c $(DEFS_H) $(OMFLIB_H)
	$(CC) $(CFLAGS) -c emxexp.c

cplus-de.o: $(LIBIBERTY)cplus-de.c
	$(CC) $(CFLAGS) -c $(LIBIBERTY)cplus-de.c

$(BIN)emxexp.exe: emxexp.o cplus-de.o $(OMFLIB)
	$(CC) $(CFLAGS) -o $(BIN)emxexp.exe -s emxexp.o cplus-de.o $(OMFLIB)

clean:
	-rm *.o

realclean: clean
	-rm $(BIN)emxexp.exe

# End of /emx/src/emxexp/makefile
