This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/GNUmakef.def
2003-03-29 21:33:14 +00:00

93 lines
1.4 KiB
Makefile

# -*- makefile -*-
ifeq ($(findstring EMX, $(PATH)), EMX)
CAT=cat
CC=gcc
AR=ar
RANLIB=ar s
PLATFORM=emx
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
#CC=gcc -Zomf
#AR=emxomfar
#RANLIB=emxomfar s
#PLATFORM=emx
#SHELL=bash
#EXEEXT=.exe
#OBJEXT=.obj
#LIBEXT=.lib
CXX=$(CC)
else
ifneq ($(DJGPP),)
CAT=command.com /c type
CC=gcc
CXX=gpp
AR=ar
RANLIB=ranlib
PLATFORM=djg
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
else
ifeq ($(TERM),cygwin)
CAT=cat
CC=gcc -mno-cygwin
CXX=g++ -mno-cygwin
AR=ar
RANLIB=ranlib
WINDRES=windres
PLATFORM=cyg
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
else
ifeq ($(OSTYPE),beos) # BeOS build
CAT=cat
CC=gcc
CXX=g++
AR=ar
RANLIB=ranlib
PLATFORM=be
EXEEXT=
OBJEXT=.o
LIBEXT=.a
LNKFLAGS+=-lbe
else
CAT=cat
CC=gcc
CXX=g++
AR=ar
RANLIB=ranlib
PLATFORM=lnx
EXEEXT=
OBJEXT=.o
LIBEXT=.a
endif
endif
endif
endif
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
LNKFLAGS+=-g
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
# 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
# force not to use coprocessor features in DOS, if you have one you may remove this
ifeq ($(PLATFORM),djg)
CFLAGS+=-mcpu=i386
STDLIBS+=-llocal -lwmemu
endif
BIN=bin
OBJPATH=obj
LIBPATH=lib