home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
util
/
makefile.emx
< prev
next >
Wrap
Makefile
|
1995-01-21
|
1KB
|
43 lines
SRC = \
argh.c dstring.c fxpand.c imin.c regex.c strinstr.c \
canonize.c dtable.c i_to_a.c l_to_a.c savestr.c tobase.c \
catstrs.c dumpdoc.c iabs.c lcase.c spoof.c ucase.c \
char.c fname.c imax.c ranger1.c ssort.c wildmat.c \
ranger2.c sheap.c
OBJ = $(SRC:.c=$O)
CFLAGS = $(BASECFLAGS) -I.
oops .PHONY:
@echo "You need to specify which version to compile\n\temx-mt\tOS/2-only using emx.dll and emxlibc.dll\n\temx-st\tOS/2-only with no special .dlls\n\temx-dos\tOS/2 and DOS using emx.dll or emx.exe"
emx-mt .PHONY :
$(MAKE) $(MAKEFILE) O=.obj A=.lib AR=emxomfar \
BASECFLAGS="-Zomf -Zmtd $(BASECFLAGS)" CC=$(CC) UTIL
emx-st .PHONY :
$(MAKE) $(MAKEFILE) O=.obj A=.lib AR=emxomfar \
BASECFLAGS="-Zomf -Zsys $(BASECFLAGS)" CC=$(CC) UTIL
emx-dos .PHONY :
$(MAKE) $(MAKEFILE) O=.o A=.a AR=ar BASECFLAGS="$(BASECFLAGS)" \
CC=$(CC) UTIL
UTIL .PHONY: announce util$A
announce:
@echo "******** Building the Utilities Library *************"
@echo "CC is:" $(CC)
@echo "CFLAGS are:" $(CFLAGS)
util$A: $(OBJ)
$(AR) r util$A $(OBJ)
$(AR) s util.a
clean:
rm -f *.o *.obj
realclean: clean
rm -f *.a *.lib