2000-02-25 10:15:17 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
ifeq ($(findstring EMX, $(PATH)), EMX)
|
2002-06-10 06:24:11 +00:00
|
|
|
CAT=cat
|
2000-02-25 10:15:17 +00:00
|
|
|
CC=gcc
|
|
|
|
AR=ar
|
2001-05-25 03:43:20 +00:00
|
|
|
RANLIB=ar s
|
2000-02-25 10:15:17 +00:00
|
|
|
PLATFORM=emx
|
|
|
|
SHELL=bash
|
|
|
|
EXEEXT=.exe
|
|
|
|
OBJEXT=.o
|
|
|
|
LIBEXT=.a
|
2001-02-24 18:37:28 +00:00
|
|
|
#CC=gcc -Zomf
|
2000-02-25 10:15:17 +00:00
|
|
|
#AR=emxomfar
|
2001-05-25 03:43:20 +00:00
|
|
|
#RANLIB=emxomfar s
|
2000-02-25 10:15:17 +00:00
|
|
|
#PLATFORM=emx
|
|
|
|
#SHELL=bash
|
|
|
|
#EXEEXT=.exe
|
|
|
|
#OBJEXT=.obj
|
|
|
|
#LIBEXT=.lib
|
|
|
|
CXX=$(CC)
|
|
|
|
else
|
|
|
|
ifneq ($(DJGPP),)
|
2002-06-10 06:24:11 +00:00
|
|
|
CAT=type
|
2000-02-25 10:15:17 +00:00
|
|
|
CC=gcc
|
|
|
|
CXX=gpp
|
|
|
|
AR=ar
|
2001-05-20 19:19:52 +00:00
|
|
|
RANLIB=ranlib
|
2000-02-25 10:15:17 +00:00
|
|
|
PLATFORM=djg
|
|
|
|
SHELL=bash
|
|
|
|
EXEEXT=.exe
|
|
|
|
OBJEXT=.o
|
|
|
|
LIBEXT=.a
|
|
|
|
else
|
|
|
|
ifeq ($(TERM),cygwin)
|
2002-06-10 06:24:11 +00:00
|
|
|
CAT=cat
|
2000-02-25 10:15:17 +00:00
|
|
|
CC=gcc -mno-cygwin
|
|
|
|
CXX=g++ -mno-cygwin
|
|
|
|
AR=ar
|
2001-05-20 19:19:52 +00:00
|
|
|
RANLIB=ranlib
|
|
|
|
WINDRES=windres
|
2000-02-25 10:15:17 +00:00
|
|
|
PLATFORM=cyg
|
|
|
|
SHELL=bash
|
|
|
|
EXEEXT=.exe
|
|
|
|
OBJEXT=.o
|
|
|
|
LIBEXT=.a
|
|
|
|
else
|
2002-06-10 06:24:11 +00:00
|
|
|
CAT=cat
|
2000-03-11 14:41:58 +00:00
|
|
|
CC=gcc
|
2000-02-25 10:15:17 +00:00
|
|
|
CXX=g++
|
|
|
|
AR=ar
|
2001-05-20 19:19:52 +00:00
|
|
|
RANLIB=ranlib
|
2000-02-25 10:15:17 +00:00
|
|
|
PLATFORM=lnx
|
|
|
|
EXEEXT=
|
|
|
|
OBJEXT=.o
|
|
|
|
LIBEXT=.a
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2002-08-30 14:03:28 +00:00
|
|
|
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
|
2000-03-22 16:55:00 +00:00
|
|
|
LNKFLAGS+=-g
|
2000-02-25 10:15:17 +00:00
|
|
|
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
|
2001-03-16 06:22:01 +00:00
|
|
|
# comment following lines if you dislike ncurses
|
|
|
|
# NOTE: lnx is active for any *NIX system and only ncurses mode is portable
|
|
|
|
ifeq ($(PLATFORM),lnx)
|
|
|
|
CPPFLAGS+=-D__USE_NCURSES__
|
|
|
|
STDLIBS+=-lncurses
|
|
|
|
endif
|
2000-02-25 10:15:17 +00:00
|
|
|
|
2000-10-24 05:02:25 +00:00
|
|
|
# force not to use coprocessor features in DOS, if you have one you may remove this
|
2000-12-02 07:11:51 +00:00
|
|
|
ifeq ($(PLATFORM),djg)
|
2002-06-06 14:14:20 +00:00
|
|
|
CFLAGS+=-mcpu=i386
|
2002-06-09 09:36:02 +00:00
|
|
|
STDLIBS+=-llocal -lwmemu
|
2000-10-24 05:02:25 +00:00
|
|
|
endif
|
|
|
|
|
2000-02-25 10:15:17 +00:00
|
|
|
BIN=bin
|
|
|
|
OBJPATH=obj
|
|
|
|
LIBPATH=lib
|