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

71 lines
1.1 KiB
Modula-2
Raw Normal View History

2000-02-25 10:15:17 +00:00
# -*- makefile -*-
ifeq ($(findstring EMX, $(PATH)), EMX)
CC=gcc
AR=ar
PLATFORM=emx
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
#CC=gcc -Zomf
2000-02-25 10:15:17 +00:00
#AR=emxomfar
#PLATFORM=emx
#SHELL=bash
#EXEEXT=.exe
#OBJEXT=.obj
#LIBEXT=.lib
CXX=$(CC)
else
ifneq ($(DJGPP),)
CC=gcc
CXX=gpp
AR=ar
PLATFORM=djg
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
else
ifeq ($(TERM),cygwin)
CC=gcc -mno-cygwin
CXX=g++ -mno-cygwin
AR=ar
PLATFORM=cyg
SHELL=bash
EXEEXT=.exe
OBJEXT=.o
LIBEXT=.a
else
CC=gcc
2000-02-25 10:15:17 +00:00
CXX=g++
AR=ar
PLATFORM=lnx
EXEEXT=
OBJEXT=.o
LIBEXT=.a
endif
endif
endif
2001-05-09 20:45:13 +00:00
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic #-O2# -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
ifeq ($(PLATFORM),djg)
CFLAGS+=-m386
LNKFLAGS+=-lwmemu
2000-10-24 05:02:25 +00:00
endif
2000-02-25 10:15:17 +00:00
BIN=bin
OBJPATH=obj
LIBPATH=lib
DEPPATH=dep