1 #############################################################################
3 # SciTech Multi-platform Graphics Library
5 # ========================================================================
7 # The contents of this file are subject to the SciTech MGL Public
8 # License Version 1.0 (the "License"); you may not use this file
9 # except in compliance with the License. You may obtain a copy of
10 # the License at http://www.scitechsoft.com/mgl-license.txt
12 # Software distributed under the License is distributed on an
13 # "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14 # implied. See the License for the specific language governing
15 # rights and limitations under the License.
17 # The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
19 # The Initial Developer of the Original Code is SciTech Software, Inc.
20 # All Rights Reserved.
22 # ========================================================================
24 # Descripton: Generic DMAKE startup makefile definitions file. Assumes
25 # that the SCITECH environment variable has been set to point
26 # to where all our stuff is installed. You should not need
27 # to change anything in this file.
29 # Cygwin port of GNU C/C++ to Win32.
31 #############################################################################
33 # Include standard startup script definitions
35 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
37 # Import enivornment variables that we use
38 .IMPORT .IGNORE : GCC2_LIBBASE
40 # Override some file suffix definitions
44 # Override the file prefix/suffix definitions for library naming.
45 LP := lib # LP - Library file prefix (name of file on disk)
46 LL := -l # Library link prefix (name of library on link command line)
47 LE := # Library link suffix (extension of library on link command line)
49 # We are compiling for a 32 bit envionment
52 # Default commands for compiling, assembling linking and archiving
53 CC := gcc # C-compiler and flags
54 CFLAGS := -Wall -I. -Iinclude -I$(SCITECH:s,\,/)/include -I$(PRIVATE:s,\,/)/include
58 ASFLAGS := -t -f coff -F null -d__FLAT__ -d__GNUC__ -dSTDCALL_USCORE -iINCLUDE -i$(SCITECH)\INCLUDE
59 SHOW_ASFLAGS := -f coff
60 LD := gcc # Loader and flags
63 LDFLAGS := -L. -mwindows -e _mainCRTStartup
75 # Optionally turn on debugging information
80 # NASM does not support debugging information yet
84 # Optionally turn on optimisations
96 # Optionally turn on direct i387 FPU instructions
103 # Optionally compile a beta release version of a product
106 SHOW_CFLAGS += -DBETA
108 SHOW_ASFLAGS += -dBETA
111 # DOS extender dependant flags
113 DX_ASFLAGS += -dGCC_WIN32
115 # Define the base directory for library files
118 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
119 CFLAGS += -DCHECKED=1
120 SHOW_CFLAGS += -DCHECKED=1
122 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
125 # Define where to install library files
126 LIB_DEST := $(LIB_BASE_DIR)\WIN32\$(GCC2_LIBBASE)
127 LDFLAGS += -L$(LIB_DEST)
129 # Place to look for PMODE library files
133 # Define which file contains our rules
135 RULES_MAK := gcc_win32.mk