Update of /cvsroot/ccomx/ccomx/misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17886/misc
Modified Files:
makefile.all makefile.bcc makefile.dj makefile.mgw
makefile.uni makefile.vc zipup.sh
Removed Files:
makefile.doc
Log Message:
Some more makefile cleanup/improvements
Index: makefile.all
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.all,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.all 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.all 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 19,22 ****
--- 19,23 ----
# clean: Remove rebuildable files.
# compress: Compress the example executable using upx.
+ # uninstall: Uninstalls the header files of CCOM and all brands of the lib that has been installed.
# help: Display this help.
#
***************
*** 85,101 ****
endif
- # By default, Allegro is linked the same way as ccom, but this can be
- # overridden.
- # Note that it is not a good idea to do anything particular with the
- # STATICLINK_ALLEGRO or NO_STATICLINK_ALLEGRO variables, since it would be
- # bad to have two dlls around with the same name that link differently to
- # Allegro.
- ifdef STATICLINK
- ifndef NO_STATICLINK_ALLEGRO
- STATICLINK_ALLEGRO=1
- endif
- endif
-
-
# -------- Include platform specific makefile. --------
--- 86,89 ----
***************
*** 172,182 ****
endif
! $(OBJ_DIR)/%$(OBJ_SUFFIX): %.c $(COMPILE_C_TO_OBJ_DEPS) $(SYSTEM_INCLUDE_DIR)/cgui.h
$(COMPILE_C_TO_OBJ)
! $(LIB_NAME): $(LIB_OBJS) $(LINK_OBJ_TO_LIB_DEPS)
$(LINK_OBJ_TO_LIB)
! examples/%$(EXE_SUFFIX): $(OBJ_DIR)/%$(OBJ_SUFFIX) $(LIB_NAME) $(LINK_OBJ_TO_EXE_DEPS)
$(LINK_OBJ_TO_EXE)
--- 160,170 ----
endif
! $(OBJ_DIR)/%$(OBJ_SUFFIX): %.c
$(COMPILE_C_TO_OBJ)
! $(LIB_NAME): $(LIB_OBJS)
$(LINK_OBJ_TO_LIB)
! examples/%$(EXE_SUFFIX): $(OBJ_DIR)/%$(OBJ_SUFFIX) $(LIB_NAME)
$(LINK_OBJ_TO_EXE)
Index: makefile.bcc
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.bcc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.bcc 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.bcc 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 4,22 ****
#
# By Christer Sandberg (ported from Adime made by Sven Sandberg).
- #
# See readme.txt for more information about CCOM.
- #
# See makefile.all for a list of the available targets.
#
- #
# You need to set BCC32DIR to the directory where Borland C++Builder is
# located.
#
# This build uses djgpp for calculating source dependencies.
- #
# The "depend" target uses sed.
-
# -------- define some variables that the primary makefile will use --------
--- 4,17 ----
***************
*** 34,39 ****
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/bcc32
--- 29,34 ----
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/bcc32
***************
*** 41,46 ****
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/bcc32
--- 36,41 ----
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/bcc32
***************
*** 49,67 ****
ifdef STATICLINK
!
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = $(PACKAGE)_s$(LIB_SUFFIX)
else
!
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = $(PACKAGE)$(LIB_SUFFIX)
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
! IMPDEF_NAME = $(LIB_DIR)/impccom.def
endif
--- 44,60 ----
ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = $(PACKAGE)_s$(LIB_SUFFIX)
else
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = $(PACKAGE)$(LIB_SUFFIX)
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
! IMPDEF_NAME = $(LIB_DIR)/impccom.def
endif
***************
*** 71,84 ****
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SYSTEMROOT)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)/$(WINSUBDIR))
else
badwin:
--- 64,77 ----
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SYSTEMROOT)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)/$(WINSUBDIR))
else
badwin:
***************
*** 101,106 ****
SYSTEM_LIB_DIR_D = $(BCC32DIR_D)\lib
-
-
# -------- Set up mktext --------
ALLEGRO_DAT = $(subst /,\,$(ALLEGRO_DAT_X))
--- 94,97 ----
***************
*** 114,141 ****
MKTEXT = $(subst /,\,$(MKTEXT_X))
-
- # -------- Find Allegro, runner and makedoc. --------
-
- NEED_ALLEGRO = 1
-
- .PHONY: badalleg
-
- ifdef ALLEGRO
- ALLEGRODIR_U = $(subst \,/,$(ALLEGRO))
- else
- badalleg:
- @echo Couldnt find Allegro!
- @echo Is your ALLEGRO environment variable set correctly? It should
- @echo point to the place where Allegro lives, e.g.
- @echo "set ALLEGRO=c:\allegro".
- endif
-
-
- ifdef NEED_MAKEDOC
- include misc/makefile.doc
- endif
-
-
-
# -------- give a sensible default target for make without any args --------
--- 105,108 ----
***************
*** 144,197 ****
_default: default
-
-
# -------- decide what compiler options to use --------
ifdef WARNMODE
! WFLAGS = -w
else
! WFLAGS =
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Od -q -R -v
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE)
! LFLAGS = /q /Gn /v
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = alld_s.lib
! else
! LIB_FLAGS = alld.lib
! endif
! else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) -O2 -OS -q -R -v
! SFLAGS = $(WFLAGS)
! LFLAGS = /q /Gn /v
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = allp_s.lib
! else
! LIB_FLAGS = allp.lib
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) -O2 -OS -q
! SFLAGS = $(WFLAGS)
! LFLAGS = /x /q /Gn
! DELETE_TDS_FILES = 1
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = alleg_s.lib
else
! LIB_FLAGS = alleg.lib
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
--- 111,162 ----
_default: default
# -------- decide what compiler options to use --------
ifdef WARNMODE
! WFLAGS = -w
else
! WFLAGS =
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Od -q -R -v
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE)
! LFLAGS = /q /Gn /v
! ifdef STATICLINK
! LIB_FLAGS = alld_s.lib
! else
! LIB_FLAGS = alld.lib
! endif
else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) -O2 -OS -q -R -v
! SFLAGS = $(WFLAGS)
! LFLAGS = /q /Gn /v
! ifdef STATICLINK
! LIB_FLAGS = allp_s.lib
! else
! LIB_FLAGS = allp.lib
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) -O2 -OS -q
! SFLAGS = $(WFLAGS)
! LFLAGS = /x /q /Gn
! DELETE_TDS_FILES = 1
! ifdef STATICLINK
! LIB_FLAGS = alleg_s.lib
! else
! LIB_FLAGS = alleg.lib
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
***************
*** 202,206 ****
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
endif
--- 167,171 ----
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
endif
***************
*** 208,213 ****
dinput.lib ddraw.lib winmm.lib dsound.lib
-
-
# -------- List platform specific objects and programs. --------
--- 173,176 ----
***************
*** 221,241 ****
# myprogram: path/myprogram$(EXE_SUFFIX)
-
-
# -------- Define how to compile. --------
GCC2BCC = -D__BORLANDC__ -UDJGPP
- COMPILE_C_TO_OBJ_DEPS =
define COMPILE_C_TO_OBJ
bcc32 $(COMPILE_FLAGS) -W -I. -I./include -c -o$(subst /,\,$@) $(subst /,\,$<)
endef
- define COMPILE_C_TO_OBJ_NO_OPTIMIZE
- bcc32 $(COMPILE_FLAGS_NO_OPTIMIZE) -W -I. -I./include -c -o$(subst /,\,$@) $(subst /,\,$<)
- endef
-
- COMPILE_S_TO_OBJ_DEPS =
- define COMPILE_S_TO_OBJ
- endef
define MAKE_LIB_RSP
--- 184,194 ----
***************
*** 262,309 ****
endif
- LINK_ALL_OBJ_TO_EXE_DEPS = lib.rsp
- define DO_LINK_ALL_OBJ_TO_EXE_DEPS
- $(foreach objfile, $(filter %.$(OBJ_SUFFIX),$^), echo $(subst /,\\,$(objfile)) + >> obj.rsp
- )
- ilink32 $(LFLAGS) /aa /Tpe c0w32 @obj.rsp,$(subst /,\,$@),,$(subst /,\,$(IMPLIB_NAME) @lib.rsp)
- del obj.rsp
- endef
- ifdef DELETE_TDS_FILES
- define LINK_ALL_OBJ_TO_EXE
- $(DO_LINK_ALL_OBJ_TO_EXE)
- @del $(subst .exe,.tds,$(subst /,\,$@))
- endef
- else
- LINK_ALL_OBJ_TO_EXE = $(DO_LINK_ALL_OBJ_TO_EXE)
- endif
-
- LINK_CONSOLE_DEPS = $(IMPLIB_NAME) lib.rsp
- define DO_LINK_CONSOLE
- ilink32 $(LFLAGS) /ap /Tpe c0x32 $(subst /,\,$<),$(subst /,\,$@),,$(subst /,\,$(IMPLIB_NAME) @lib.rsp)
- endef
- ifdef DELETE_TDS_FILES
- define LINK_CONSOLE
- $(DO_LINK_CONSOLE)
- @del $(subst .exe,.tds,$(subst /,\,$@))
- endef
- else
- DO_LINK_CONSOLE = $(DO_LINK_CONSOLE)
- endif
-
-
ifdef STATICLINK
! # link as a static library
!
! LINK_OBJ_TO_LIB_DEPS =
! define LINK_OBJ_TO_LIB
! $(foreach objfile, $(LIB_OBJS), tlib /P32 $(subst /,\,$(LIB_NAME) + $(objfile)))
! @del $(subst /,\,$(subst .lib,.BAK,$(LIB_NAME)))
endef
-
else
! # link as a DLL
!
! LINK_OBJ_TO_LIB_DEPS = lib.rsp
! define DO_LINK_OBJ_TO_LIB
-del libobj.rsp
$(foreach libobjfile, $(LIB_OBJS), echo $(subst /,\\,$(libobjfile)) + >> libobj.rsp
--- 215,228 ----
endif
ifdef STATICLINK
! # link as a static library
! define LINK_OBJ_TO_LIB
! $(foreach objfile, $(LIB_OBJS), tlib /P32 $(subst /,\,$(LIB_NAME) + $(objfile)))
! @del $(subst /,\,$(subst .lib,.BAK,$(LIB_NAME)))
endef
else
! # link as a DLL
! LINK_OBJ_TO_LIB_DEPS = lib.rsp
! define DO_LINK_OBJ_TO_LIB
-del libobj.rsp
$(foreach libobjfile, $(LIB_OBJS), echo $(subst /,\\,$(libobjfile)) + >> libobj.rsp
***************
*** 316,333 ****
del _impccom.def
del _impdim2.def
! endef
! ifdef DELETE_TDS_FILES
define LINK_OBJ_TO_LIB
$(DO_LINK_OBJ_TO_LIB)
@del $(subst .dll,.tds,$(subst /,\,$@))
endef
! else
LINK_OBJ_TO_LIB = $(DO_LINK_OBJ_TO_LIB)
! endif
!
endif # ifdef STATICLINK
-
-
# -------- Rules for installing and removing the library files. --------
--- 235,249 ----
del _impccom.def
del _impdim2.def
! endef
! ifdef DELETE_TDS_FILES
define LINK_OBJ_TO_LIB
$(DO_LINK_OBJ_TO_LIB)
@del $(subst .dll,.tds,$(subst /,\,$@))
endef
! else
LINK_OBJ_TO_LIB = $(DO_LINK_OBJ_TO_LIB)
! endif
endif # ifdef STATICLINK
# -------- Rules for installing and removing the library files. --------
***************
*** 337,346 ****
ifndef STATICLINK
! $(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
! ifdef HAVE_CP
$(DJDIR)/bin/cp $(subst \,/,$< $@)
! else
copy $(subst /,\,$< $@)
! endif
endif
--- 253,262 ----
ifndef STATICLINK
! $(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
! ifdef HAVE_CP
$(DJDIR)/bin/cp $(subst \,/,$< $@)
! else
copy $(subst /,\,$< $@)
! endif
endif
***************
*** 369,373 ****
endif
-
INSTALL_HEADERS = $(addprefix $(BCC32DIR_U)/,$(wildcard include/ccom/*.h))
--- 285,288 ----
***************
*** 378,382 ****
ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
--- 293,297 ----
ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
***************
*** 392,404 ****
uninstall:
-rm -fv $(UNINSTALL_FILES)
@echo All gone!
-
-
- # -------- Compile anything that can't be done in makefile.all. --------
-
- # this section is empty
-
-
# -------- Generate automatic dependencies. --------
--- 307,313 ----
uninstall:
-rm -fv $(UNINSTALL_FILES)
+ -rm -frv $(SYSTEM_INCLUDE_DIR)/ccom
@echo All gone!
# -------- Generate automatic dependencies. --------
Index: makefile.dj
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.dj,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.dj 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.dj 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 3,13 ****
#
# By Christer Sandberg (ported from Adime made by Sven Sandberg).
- #
# See readme.txt for more information about CCOM.
- #
# See makefile.all for a list of the available targets.
-
-
# -------- Define some variables that the primary makefile may use. --------
--- 3,9 ----
***************
*** 36,41 ****
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/djgpp
--- 32,37 ----
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/djgpp
***************
*** 45,50 ****
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/djgpp
--- 41,46 ----
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/djgpp
***************
*** 54,59 ****
LIB_NAME = $(LIB_DIR)/$(LIB_BASENAME)
-
-
# -------- Find djgpp. --------
--- 50,53 ----
***************
*** 76,80 ****
SYSTEM_INFO_DIR = $(DJGPPDIR_D)\info
-
# -------- Set up mktext --------
ALLEGRO_DAT = $(subst /,\,$(ALLEGRO_DAT_X))
--- 70,73 ----
***************
*** 89,126 ****
- # -------- Find Allegro and makedoc. --------
-
- ifdef NEED_MAKEDOC
- ifndef NEED_ALLEGRO
- ifeq ($(wildcard $(MAKEDOC_SOURCE)),)
- NEED_ALLEGRO = 1
- endif
- endif
- endif
-
- ifdef NEED_ALLEGRO
- .PHONY: badalleg
-
- ifdef ALLEGRO
- ALLEGRODIR_U = $(subst \,/,$(ALLEGRO))
- else
- badalleg:
- @echo Couldnt find Allegro!
- @echo Is your ALLEGRO environment variable set correctly? It should
- @echo point to the place where Allegro lives, e.g. c:\djgpp\allegro. Run
- @echo make ALLEGRO=c:\djgpp\allegro
- @echo (or whatever the location of Allegro is).
- @echo See also readme.txt
- endif
-
- endif # ifdef NEED_ALLEGRO
-
-
- ifdef NEED_MAKEDOC
- include misc/makefile.doc
- endif
-
-
-
# -------- Give a sensible default target for make without any args. --------
# This must be done right after the tests, which can generate error targets.
--- 82,85 ----
***************
*** 130,183 ****
_default: default
-
-
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
! # -Wno-unused
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
! else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
ifdef DEBUGMODE
! # debugging build
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS = -g3
! LIB_FLAGS = -lcgui -lalld
! else
! ifdef PROFILEMODE
! # profiling build
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS = -pg
! LIB_FLAGS = -lcgui -lallp
else
! # optimised build
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS = -s
! LIB_FLAGS = -lcgui -lalleg
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
--- 89,139 ----
_default: default
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
! else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
ifdef DEBUGMODE
! # debugging build
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS = -g3
! LIB_FLAGS = -lcgui -lalld
else
! ifdef PROFILEMODE
! # profiling build
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS = -pg
! LIB_FLAGS = -lcgui -lallp
! else
! # optimised build
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS = -s
! LIB_FLAGS = -lcgui -lalleg
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
***************
*** 185,189 ****
# including some standard header.
ifdef CCOM_NO_ALLEGRO_STD_HEADERS
! CFLAGS += -DALLEGRO_NO_STD_HEADERS -DEDOM=1 -DERANGE=1
endif
--- 141,145 ----
# including some standard header.
ifdef CCOM_NO_ALLEGRO_STD_HEADERS
! CFLAGS += -DALLEGRO_NO_STD_HEADERS -DEDOM=1 -DERANGE=1
endif
***************
*** 193,198 ****
COMPILE_FLAGS_NO_OPTIMIZE = $(subst src/,-DCCOM_SRC ,$(findstring src/, $<))$(CFLAGS_NO_OPTIMIZE)
-
-
# -------- List platform specific objects and programs. --------
--- 149,152 ----
***************
*** 206,255 ****
# myprogram: path/myprogram$(EXE_SUFFIX)
-
-
# -------- Define how to compile. --------
GCC2DJGPP = -DDJGPP=2 -U__unix__
- COMPILE_C_TO_OBJ_DEPS =
define COMPILE_C_TO_OBJ
gcc $(COMPILE_FLAGS) -I./include -o $@ -c $<
endef
- define COMPILE_C_TO_OBJ_NO_OPTIMIZE
- gcc $(COMPILE_FLAGS_NO_OPTIMIZE) -I./include -o $@ -c $<
- endef
- COMPILE_S_TO_OBJ_DEPS =
- define COMPILE_S_TO_OBJ
- gcc $(SFLAGS) -I./include -x assembler-with-cpp -o $@ -c $<
- endef
-
- LINK_OBJ_TO_LIB_DEPS =
define LINK_OBJ_TO_LIB
ar rs $(LIB_NAME) $(LIB_OBJS)
endef
- LINK_OBJ_TO_EXE_DEPS =
define LINK_OBJ_TO_EXE
gcc $(LFLAGS) -o $@ $< $(LIB_NAME) $(LIB_FLAGS)
endef
- LINK_OBJ_TO_EXE_NOLIB_DEPS =
- define LINK_OBJ_TO_EXE_NOLIB
- gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS)
- endef
-
- LINK_ALL_OBJ_TO_EXE_DEPS =
- define LINK_ALL_OBJ_TO_EXE
- gcc $(LFLAGS) -o $@ $^ $(LIB_NAME) $(LIB_FLAGS)
- endef
-
- LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS =
- define LINK_ALL_OBJ_TO_EXE_NOLIB
- gcc $(LFLAGS) -o $@ $^ $(LIB_FLAGS)
- endef
-
-
-
# -------- Rules for installing and removing the library files. --------
--- 160,179 ----
***************
*** 309,312 ****
--- 233,237 ----
uninstall:
-rm -fv $(UNINSTALL_FILES)
+ -rm -frv $(SYSTEM_INCLUDE_DIR)/ccom
@echo All gone!
Index: makefile.mgw
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.mgw,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.mgw 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.mgw 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 8,13 ****
# See makefile.all for a list of the available targets.
-
-
# -------- Define some variables that the primary makefile may use. --------
--- 8,11 ----
***************
*** 25,30 ****
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/mingw32
--- 23,28 ----
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/mingw32
***************
*** 32,37 ****
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/mingw32
--- 30,35 ----
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/mingw32
***************
*** 39,54 ****
ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = lib$(PACKAGE)_s.a
else
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = lib$(PACKAGE).a
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
endif
--- 37,52 ----
ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = lib$(PACKAGE)_s.a
else
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = lib$(PACKAGE).a
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
endif
***************
*** 61,84 ****
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SystemRoot)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)\$(WINSUBDIR))
else
! ifndef CROSSCOMPILE
badwin:
@echo Your SYSTEMROOT or WINDIR environment variable is not set!
! endif
endif
ifdef MINGDIR
! MINGDIR_U = $(subst \,/,$(MINGDIR))
! MINGDIR_D = $(subst /,\,$(MINGDIR))
else
badming:
--- 59,82 ----
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SystemRoot)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)\$(WINSUBDIR))
else
! ifndef CROSSCOMPILE
badwin:
@echo Your SYSTEMROOT or WINDIR environment variable is not set!
! endif
endif
ifdef MINGDIR
! MINGDIR_U = $(subst \,/,$(MINGDIR))
! MINGDIR_D = $(subst /,\,$(MINGDIR))
else
badming:
***************
*** 93,98 ****
SYSTEM_LIB_DIR_D = $(MINGDIR_D)\lib
-
-
# -------- Set up mktext --------
ALLEGRO_DAT = $(subst /,\,$(ALLEGRO_DAT_X))
--- 91,94 ----
***************
*** 106,141 ****
MKTEXT = $(subst /,\,$(MKTEXT_X))
-
- # -------- Find Allegro and makedoc. --------
-
- ifdef NEED_MAKEDOC
- ifndef NEED_ALLEGRO
- ifeq ($(wildcard $(MAKEDOC_SOURCE)),)
- NEED_ALLEGRO = 1
- endif
- endif
- endif
-
- ifdef NEED_ALLEGRO
- .PHONY: badalleg
-
- ifdef ALLEGRO
- ALLEGRODIR_U = $(subst \,/,$(ALLEGRO))
- else
- badalleg:
- @echo Couldnt find Allegro!
- @echo Is your ALLEGRO environment variable set correctly? It should
- @echo point to the place where Allegro lives, e.g. c:\mingw32\allegro.
- endif
-
- endif # ifdef NEED_ALLEGRO
-
-
- ifdef NEED_MAKEDOC
- include misc/makefile.doc
- endif
-
-
-
# -------- Give a sensible default target for make without any args. --------
# This must be done right after the tests, which can generate error targets.
--- 102,105 ----
***************
*** 145,219 ****
_default: default
-
-
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
! # -Wno-unused
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
! else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS += -g
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = -lcguid_s -lalld_s
! else
! LIB_FLAGS = -lcguid -lalld
! endif
! else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS += -pg
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = -lcgui_s -lallp_s
! else
! LIB_FLAGS = -lcgui -lallp
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS += -s
! endif
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = -lcgui_s -lalleg_s
else
! LIB_FLAGS = -lcgui -lalleg
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
LFLAGS += -L$(SYSTEM_LIB_DIR)
! ifdef STATICLINK_ALLEGRO
! CFLAGS += -DALLEGRO_STATICLINK
! CFLAGS_NO_OPTIMIZE = $(WFLAGS) -DALLEGRO_STATICLINK
else
! CFLAGS_NO_OPTIMIZE = $(WFLAGS)
endif
--- 109,180 ----
_default: default
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
! else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS += -g
! ifdef STATICLINK
! LIB_FLAGS = -lcguid_s -lalld_s
! else
! LIB_FLAGS = -lcguid -lalld
! endif
else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS += -pg
! ifdef STATICLINK
! LIB_FLAGS = -lcgui_s -lallp_s
! else
! LIB_FLAGS = -lcgui -lallp
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS += -s
! endif
! ifdef STATICLINK
! LIB_FLAGS = -lcgui_s -lalleg_s
! else
! LIB_FLAGS = -lcgui -lalleg
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
LFLAGS += -L$(SYSTEM_LIB_DIR)
! ifdef STATICLINK
! CFLAGS += -DALLEGRO_STATICLINK
! CFLAGS_NO_OPTIMIZE = $(WFLAGS) -DALLEGRO_STATICLINK
else
! CFLAGS_NO_OPTIMIZE = $(WFLAGS)
endif
***************
*** 222,236 ****
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
! LIB_FLAGS += -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput \
-lddraw -ldxguid -lwinmm -ldsound
endif
ifdef PROFILEMODE
! LIB_FLAGS += -lgmon
endif
-
-
# -------- List platform specific objects and programs. --------
--- 183,195 ----
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
! LIB_FLAGS += -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput \
-lddraw -ldxguid -lwinmm -ldsound
endif
ifdef PROFILEMODE
! LIB_FLAGS += -lgmon
endif
# -------- List platform specific objects and programs. --------
***************
*** 244,249 ****
# myprogram: path/myprogram$(EXE_SUFFIX)
-
-
# -------- Define how to compile. --------
--- 203,206 ----
***************
*** 251,365 ****
ifdef CROSSCOMPILE
! DLLWRAP = i386-mingw32msvc-dllwrap
! WINDRES = windres
else
! DLLWRAP = dllwrap
! WINDRES = i386-mingw32msvc-windres
endif
- COMPILE_C_TO_OBJ_DEPS =
define COMPILE_C_TO_OBJ
gcc $(COMPILE_FLAGS) -I./include -o $@ -c $<
endef
- define COMPILE_C_TO_OBJ_NO_OPTIMIZE
- gcc $(COMPILE_FLAGS_NO_OPTIMIZE) -I./include -o $@ -c $<
- endef
-
- COMPILE_S_TO_OBJ_DEPS =
- define COMPILE_S_TO_OBJ
- gcc $(SFLAGS) -I./include -x assembler-with-cpp -o $@ -c $<
- endef
ifdef STATICLINK
! # link as a static library
!
! LINK_OBJ_TO_LIB_DEPS =
! define LINK_OBJ_TO_LIB
! ar rs $(LIB_NAME) $(LIB_OBJS)
! endef
!
! LINK_OBJ_TO_EXE_DEPS =
! define LINK_OBJ_TO_EXE
! gcc $(LFLAGS) -mwindows -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_OBJ_TO_EXE_NOLIB_DEPS =
! define LINK_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -mwindows -o $@ $< $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_DEPS =
! define LINK_ALL_OBJ_TO_EXE
! gcc $(LFLAGS) -mwindows -o $@ $^ $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS =
! define LINK_ALL_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -mwindows -o $@ $^ $(LIB_FLAGS)
! endef
!
! LINK_CONSOLE_DEPS =
! define LINK_CONSOLE
! gcc $(LFLAGS) -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_CONSOLE_NOLIB_DEPS =
! define LINK_CONSOLE_NOLIB
! gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS)
! endef
!
! else
! # link as a DLL
! LINK_OBJ_TO_LIB_DEPS =
! ifdef FASTDLL
! define LINK_OBJ_TO_LIB
! gcc $(LFLAGS) -shared -Wl,--out-implib,$(IMPLIB_NAME),--just-symbols,$(EXPDEF_NAME) -o $(DLL_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
else
! define LINK_OBJ_TO_LIB
! dllwrap --def $(EXPDEF_NAME) -o $(DLL_NAME) $(LIB_OBJS) $(LIB_FLAGS) --output-lib $(IMPLIB_NAME)
! endef
! endif
!
! LINK_OBJ_TO_EXE_DEPS =
! define LINK_OBJ_TO_EXE
! gcc $(LFLAGS) -mwindows -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_OBJ_TO_EXE_DEPS_NOLIB =
! define LINK_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -mwindows -o $@ $< $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_DEPS =
! define LINK_ALL_OBJ_TO_EXE
! gcc $(LFLAGS) -mwindows -o $@ $^ $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_DEPS_NOLIB =
! define LINK_ALL_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -mwindows -o $@ $^ $(LIB_FLAGS)
! endef
!
! LINK_CONSOLE_DEPS = $(IMPLIB_NAME)
! define LINK_CONSOLE
! gcc $(LFLAGS) -o $@ $< $(IMPLIB_NAME)
! endef
!
! LINK_CONSOLE_NOLIB_DEPS =
! define LINK_CONSOLE_NOLIB
! gcc $(LFLAGS) -o $@ $<
! endef
endif # ifdef STATICLINK
-
-
# -------- Rules for installing and removing the library files. --------
ifdef CROSSCOMPILE
!
! ifndef STATICLINK
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
cp $(subst \,/,$< $@)
--- 208,252 ----
ifdef CROSSCOMPILE
! DLLWRAP = i386-mingw32msvc-dllwrap
! WINDRES = windres
else
! DLLWRAP = dllwrap
! WINDRES = i386-mingw32msvc-windres
endif
define COMPILE_C_TO_OBJ
gcc $(COMPILE_FLAGS) -I./include -o $@ -c $<
endef
ifdef STATICLINK
! # link as a static library
! define LINK_OBJ_TO_LIB
! ar rs $(LIB_NAME) $(LIB_OBJS)
! endef
! define LINK_OBJ_TO_EXE
! gcc $(LFLAGS) -mwindows -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
else
! # link as a DLL
! ifdef FASTDLL
! define LINK_OBJ_TO_LIB
! gcc $(LFLAGS) -shared -Wl,--out-implib,$(IMPLIB_NAME),--just-symbols,$(EXPDEF_NAME) -o $(DLL_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
! else
! define LINK_OBJ_TO_LIB
! dllwrap --def $(EXPDEF_NAME) -o $(DLL_NAME) $(LIB_OBJS) $(LIB_FLAGS) --output-lib $(IMPLIB_NAME)
! endef
! endif
+ define LINK_OBJ_TO_EXE
+ gcc $(LFLAGS) -mwindows -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
+ endef
endif # ifdef STATICLINK
# -------- Rules for installing and removing the library files. --------
ifdef CROSSCOMPILE
! ifndef STATICLINK
$(WINDIR_U)/$(DLL_BASENAME): $(DLL_NAME)
cp $(subst \,/,$< $@)
***************
*** 399,403 ****
endif # ifdef CROSSCOMPILE else
-
INSTALL_HEADERS = $(addprefix $(MINGDIR_U)/,$(wildcard include/ccom/*.h))
--- 286,289 ----
***************
*** 408,414 ****
ifndef CROSSCOMPILE
! ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
! endif
endif
--- 294,300 ----
ifndef CROSSCOMPILE
! ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
! endif
endif
***************
*** 422,434 ****
uninstall:
-rm -fv $(UNINSTALL_FILES)
@echo All gone!
-
-
- # -------- Compile anything that can't be done in makefile.all. --------
-
- # this section is empty
-
-
# -------- generate automatic dependencies --------
# Note that this must be done with djgpp!
--- 308,314 ----
uninstall:
-rm -fv $(UNINSTALL_FILES)
+ -rm -frv $(SYSTEM_INCLUDE_DIR)/ccom
@echo All gone!
# -------- generate automatic dependencies --------
# Note that this must be done with djgpp!
Index: makefile.uni
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.uni,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.uni 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.uni 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 3,13 ****
#
# By Christer Sandberg (copied from ADIME made by Sven Sandberg)
- #
# See readme.txt for more information about CCOM.
- #
# See makefile.all for a list of the available targets.
-
-
# -------- Define some variables that the primary makefile may use. --------
--- 3,9 ----
***************
*** 30,34 ****
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/unix
--- 26,30 ----
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/unix
***************
*** 36,47 ****
HAVE_TEXINFO = 1
! ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! IMPLIB_BASENAME = lib$(PACKAGE)_s.a
! else
! # link as a shared object
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! IMPLIB_BASENAME = lib$(PACKAGE).so
endif
--- 32,41 ----
HAVE_TEXINFO = 1
! ifdef STATICLINK # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! IMPLIB_BASENAME = lib$(PACKAGE)_s.a
! else # link as a shared object
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! IMPLIB_BASENAME = lib$(PACKAGE).so
endif
***************
*** 68,101 ****
MKTEXT = $(MKTEXT_X)
- # -------- Find Allegro and makedoc. --------
-
- ifdef NEED_MAKEDOC
- ifndef NEED_ALLEGRO
- ifeq ($(wildcard $(MAKEDOC_SOURCE)),)
- NEED_ALLEGRO = 1
- endif
- endif
- endif
-
- ifdef NEED_ALLEGRO
- .PHONY: badalleg
-
- ifdef ALLEGRO
- ALLEGRODIR_U = $(subst \,/,$(ALLEGRO))
- else
- badalleg:
- @echo Couldnt find Allegro!
- @echo Is your ALLEGRO environment variable set correctly? It should
- @echo point to the place where Allegro lives.
- endif
-
- endif # ifdef NEED_ALLEGRO
-
-
- ifdef NEED_MAKEDOC
- include misc/makefile.doc
- endif
-
-
# -------- Give a sensible default target for make without any args. --------
# This must be done right after the tests, which can generate error targets.
--- 62,65 ----
***************
*** 105,166 ****
_default: default
-
-
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
! # -Wno-unused
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
! else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
! ifdef STATICLINK_ALLEGRO
! ALLEGRO_CONFIG_FLAGS = --static
! LIB_FLAGS = -lcgui_s
else
! ALLEGRO_CONFIG_FLAGS = --shared
! LIB_FLAGS = -lcgui
endif
ifdef DEBUGMODE
! # debugging build
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS += -g
! LIB_FLAGS += `allegro-config --libs debug $(ALLEGRO_CONFIG_FLAGS)`
! else
! ifdef PROFILEMODE
! # profiling build
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS += -pg
! LIB_FLAGS += `allegro-config --libs profile $(ALLEGRO_CONFIG_FLAGS)`
else
! # optimised build
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS += -s
! LIB_FLAGS += `allegro-config --libs release $(ALLEGRO_CONFIG_FLAGS)`
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
--- 69,127 ----
_default: default
# -------- Decide what compiler options and libraries to use. --------
ifdef WARNMODE
! WFLAGS = -Wall -W -Werror
else
! WFLAGS = -Wall -Wno-unused
endif
ifdef PGCC
! OFLAGS = -mcpu=pentium -O6 -ffast-math
else
! ifdef PENTIUMONLY
! OFLAGS = -march=pentium -O2 -funroll-loops -ffast-math
! else
! OFLAGS = -mcpu=pentium -O2 -funroll-loops -ffast-math
! endif
endif
! ifdef STATICLINK
! ALLEGRO_CONFIG_FLAGS = --static
! LIB_FLAGS = -lcgui_s
else
! ALLEGRO_CONFIG_FLAGS = --shared
! LIB_FLAGS = -lcgui
endif
ifdef DEBUGMODE
! # debugging build
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -g
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS)
! LFLAGS += -g
! LIB_FLAGS += `allegro-config --libs debug $(ALLEGRO_CONFIG_FLAGS)`
else
! ifdef PROFILEMODE
! # profiling build
! CFLAGS = $(WFLAGS) $(OFLAGS) -pg
! SFLAGS = $(WFLAGS)
! LFLAGS += -pg
! LIB_FLAGS += `allegro-config --libs profile $(ALLEGRO_CONFIG_FLAGS)`
! else
! # optimised build
! CFLAGS = $(WFLAGS) $(OFLAGS) -fomit-frame-pointer -fno-strength-reduce
! SFLAGS = $(WFLAGS)
! ifndef SYMBOLMODE
! LFLAGS += -s
! LIB_FLAGS += `allegro-config --libs release $(ALLEGRO_CONFIG_FLAGS)`
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
***************
*** 171,183 ****
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
endif
ifdef PROFILEMODE
! LIB_FLAGS += -lgmon
endif
-
-
# -------- List platform specific objects and programs. --------
--- 132,142 ----
ifdef STATICLINK
! COMPILE_FLAGS += -DCCOM_STATICLINK
endif
ifdef PROFILEMODE
! LIB_FLAGS += -lgmon
endif
# -------- List platform specific objects and programs. --------
***************
*** 191,266 ****
# myprogram: path/myprogram$(EXE_SUFFIX)
-
-
# -------- Define how to compile. --------
GCC2UNIX = -D__UNIX__ -UDJGPP
- COMPILE_C_TO_OBJ_DEPS =
define COMPILE_C_TO_OBJ
gcc $(COMPILE_FLAGS) -I./include -o $@ -c $<
endef
- define COMPILE_C_TO_OBJ_NO_OPTIMIZE
- gcc $(COMPILE_FLAGS_NO_OPTIMIZE) -I./include -o $@ -c $<
- endef
-
- COMPILE_S_TO_OBJ_DEPS =
- define COMPILE_S_TO_OBJ
- gcc $(SFLAGS) -I./include -x assembler-with-cpp -o $@ -c $<
- endef
ifdef STATICLINK
! # link as a static library
!
! LINK_OBJ_TO_LIB_DEPS =
! define LINK_OBJ_TO_LIB
! ar rs $(LIB_NAME) $(LIB_OBJS)
! endef
!
! LINK_OBJ_TO_EXE_DEPS =
! define LINK_OBJ_TO_EXE
! gcc $(LFLAGS) -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_OBJ_TO_EXE_NOLIB_DEPS =
! define LINK_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_DEPS =
! define LINK_ALL_OBJ_TO_EXE
! gcc $(LFLAGS) -o $@ $^ $(IMPLIB_NAME) $(LIB_FLAGS)
! endef
!
! LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS =
! define LINK_ALL_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -o $@ $^ $(LIB_FLAGS)
! endef
else
! # link as a shared object
!
! LINK_OBJ_TO_LIB_DEPS =
! define LINK_OBJ_TO_LIB
! gcc $(LFLAGS) -shared -o $(IMPLIB_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
!
! LINK_OBJ_TO_EXE_DEPS =
! define LINK_OBJ_TO_EXE
! gcc $(LFLAGS) -o $@ $< -L$(LIB_DIR) -lccom $(LIB_FLAGS)
! endef
!
! LINK_OBJ_TO_EXE_NOLIB_DEPS =
! define LINK_OBJ_TO_EXE_NOLIB
! gcc $(LFLAGS) -o $@ $< $(LIB_FLAGS)
! endef
endif
- # ifdef STATICLINK
-
- #gcc -s -o examples/game5 obj/unix/cgui/game5.o -Llib/unix -lcgui `allegro-config --libs release --shared`
- #gcc -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -I./include -o obj/unix/cgui/game6.o -c examples/game6.c
- #gcc -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce examples/1_com.c -o examples/1_com
-
# -------- Rules for installing and removing the library files. --------
--- 150,180 ----
# myprogram: path/myprogram$(EXE_SUFFIX)
# -------- Define how to compile. --------
GCC2UNIX = -D__UNIX__ -UDJGPP
define COMPILE_C_TO_OBJ
gcc $(COMPILE_FLAGS) -I./include -o $@ -c $<
endef
ifdef STATICLINK
! # link as a static library
! define LINK_OBJ_TO_LIB
! ar rs $(LIB_NAME) $(LIB_OBJS)
! endef
+ define LINK_OBJ_TO_EXE
+ gcc $(LFLAGS) -o $@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
+ endef
else
! # link as a shared object
! define LINK_OBJ_TO_LIB
! gcc $(LFLAGS) -shared -o $(IMPLIB_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
+ define LINK_OBJ_TO_EXE
+ gcc $(LFLAGS) -o $@ $< -L$(LIB_DIR) -lccom $(LIB_FLAGS)
+ endef
endif
# -------- Rules for installing and removing the library files. --------
***************
*** 291,300 ****
@echo The $(DESCRIPTION) UNIX library has been installed.
! UNINSTALL_FILES = $(SYSTEM_LIB_DIR)/libccom.a $(SYSTEM_LIB_DIR)/libccomd.a \
$(SYSTEM_INCLUDE_DIR)/ccom.h
- # $(WINDIR_U)/ccom$(LIB_VERSION).dll $(WINDIR_U)/ccom$(LIB_VERSION).dll
uninstall:
-rm -fv $(UNINSTALL_FILES)
@echo All gone!
--- 205,215 ----
@echo The $(DESCRIPTION) UNIX library has been installed.
! UNINSTALL_FILES = $(SYSTEM_LIB_DIR)/libccom_s.a $(SYSTEM_LIB_DIR)/libccomd_s.a \
! $(SYSTEM_LIB_DIR)/libccom.so $(SYSTEM_LIB_DIR)/libccomd.so \
$(SYSTEM_INCLUDE_DIR)/ccom.h
uninstall:
-rm -fv $(UNINSTALL_FILES)
+ -rm -frv $(SYSTEM_INCLUDE_DIR)/ccom
@echo All gone!
Index: makefile.vc
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/makefile.vc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** makefile.vc 1 Feb 2004 18:05:11 -0000 1.2
--- makefile.vc 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 3,9 ****
#
# By Christer Sandberg (ported from Adime made by Sven Sandberg).
- #
# See readme.txt for more information about CCOM.
- #
# See makefile.all for a list of the available targets.
#
--- 3,7 ----
***************
*** 17,22 ****
# The "depend" target uses sed.
-
-
# -------- define some variables that the primary makefile will use --------
--- 15,18 ----
***************
*** 34,39 ****
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/msvc
--- 30,35 ----
ifndef OBJ_ROOT_DIR
! OBJ_ROOT_DIR = obj
! OBJ_ROOT_DIR_D = obj
endif
OBJ_PLATFORM_ROOT_DIR = $(OBJ_ROOT_DIR)/msvc
***************
*** 41,46 ****
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/msvc
--- 37,42 ----
ifndef LIB_ROOT_DIR
! LIB_ROOT_DIR = lib
! LIB_ROOT_DIR_D = lib
endif
LIB_DIR = $(LIB_ROOT_DIR)/msvc
***************
*** 48,63 ****
ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = $(PACKAGE)_s$(LIB_SUFFIX)
else
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = $(PACKAGE)$(LIB_SUFFIX)
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
endif
--- 44,59 ----
ifdef STATICLINK
! # link as a static library
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)_s
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)_s
! IMPLIB_BASENAME = $(PACKAGE)_s$(LIB_SUFFIX)
else
! # link as a DLL
! OBJ_DIR = $(OBJ_PLATFORM_ROOT_DIR)/$(PACKAGE)
! OBJ_DIR_D = $(OBJ_PLATFORM_ROOT_DIR_D)\$(PACKAGE)
! DLL_BASENAME = $(PACKAGE)$(LIB_VERSION).dll
! DLL_NAME = $(LIB_DIR)/$(DLL_BASENAME)
! IMPLIB_BASENAME = $(PACKAGE)$(LIB_SUFFIX)
! EXPDEF_NAME = $(LIB_DIR)/ccom.def
endif
***************
*** 70,83 ****
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SYSTEMROOT)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)/$(WINSUBDIR))
else
badwin:
--- 66,79 ----
ifeq ($(OS),Windows_NT)
! WINSYSDIR = $(SYSTEMROOT)
! WINSUBDIR = system32
else
! WINSYSDIR = $(windir)
! WINSUBDIR = system
endif
ifneq ($(WINSYSDIR),)
! WINDIR_U = $(subst \,/,$(WINSYSDIR)/$(WINSUBDIR))
! WINDIR_D = $(subst /,\,$(WINSYSDIR)/$(WINSUBDIR))
else
badwin:
***************
*** 86,99 ****
ifdef MSVCDIR
! MSVCDIR_U = $(subst \,/,$(MSVCDIR))
! MSVCDIR_D = $(subst /,\,$(MSVCDIR))
! else
! ifdef MSDEVDIR
! MSVCDIR_U = $(subst \,/,$(MSDEVDIR))
! MSVCDIR_D = $(subst /,\,$(MSDEVDIR))
else
badmsvc:
@echo Your MSVCDIR or MSDEVDIR environment variable is not set!
! endif
endif
--- 82,95 ----
ifdef MSVCDIR
! MSVCDIR_U = $(subst \,/,$(MSVCDIR))
! MSVCDIR_D = $(subst /,\,$(MSVCDIR))
else
+ ifdef MSDEVDIR
+ MSVCDIR_U = $(subst \,/,$(MSDEVDIR))
+ MSVCDIR_D = $(subst /,\,$(MSDEVDIR))
+ else
badmsvc:
@echo Your MSVCDIR or MSDEVDIR environment variable is not set!
! endif
endif
***************
*** 113,118 ****
SYSTEM_LIB_DIR_D = $(MSVCDIR_D)\lib
-
-
# -------- Set up mktext --------
ALLEGRO_DAT = $(subst /,\,$(ALLEGRO_DAT_X))
--- 109,112 ----
***************
*** 126,183 ****
MKTEXT = $(subst /,\,$(MKTEXT_X))
! # -------- Find Allegro, runner and makedoc. --------
!
! ifndef NEED_ALLEGRO
! ifeq ($(wildcard docs/makedoc.c),)
! NEED_ALLEGRO = 1
! else
! ifeq ($(wildcard src/misc/runner.c),)
! NEED_ALLEGRO = 1
! endif
! endif
! endif
!
! .PHONY: badalleg
!
! ifdef NEED_ALLEGRO
! ifdef ALLEGRO
! ALLEGRODIR_U = $(subst \,/,$(ALLEGRO))
! else
! badalleg:
! @echo Couldnt find Allegro!
! @echo Is your ALLEGRO environment variable set correctly? It should
! @echo point to the place where Allegro lives, e.g.
! @echo "set ALLEGRO=c:\msvc\allegro".
! endif
! endif
!
!
! ifneq ($(wildcard $(RUNNER_SOURCE)),)
! RUNNER := obj/msvc/runner.exe
! RUNNER_DEP := obj/msvc/runner.exe
! define COMPILE_RUNNER
! gcc -O -Wall -Werror -o $(RUNNER) $(RUNNER_SOURCE)
! endef
! else
! RUNNER := $(wildcard $(ALLEGRODIR_U)/obj/msvc/runner.exe)
! RUNNER_DEP :=
! ifeq ($(RUNNER),)
! .PHONY: badrunner
! badrunner:
! @echo Couldnt find Allegros runner utility.
! @echo Have you forgotten to make Allegro? You need to make the MSVC version of
! @echo Allegro before making the MSVC version of CCOM.
! @echo Alternatively, download the dimalleg.zip package from CCOM's homepage.
! endif
! endif
!
!
! ifdef NEED_MAKEDOC
! include misc/makefile.doc
! endif
!
!
!
! # -------- give a sensible default target for make without any args --------
.PHONY: _default
--- 120,124 ----
MKTEXT = $(subst /,\,$(MKTEXT_X))
! RUNNER = $(CGUIDIR)/obj/msvc/runner$(EXE_SUFFIX)
.PHONY: _default
***************
*** 185,237 ****
_default: default
-
-
# -------- decide what compiler options to use --------
ifdef WARNMODE
! WFLAGS = -W3 -WX
else
! WFLAGS = -W1
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Gd -Zi -MDd
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) -Wall
! LFLAGS = -debug -debugtype:cv
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = cgui_s.lib alld_s.lib
! else
! LIB_FLAGS = cgui.lib alld.lib
! endif
! else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) -Gd -Ox -GB -MD
! SFLAGS = -Wall
! LFLAGS = -profile
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = cgui_s.lib allp_s.lib
! else
! LIB_FLAGS = cgui.lib allp.lib
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) -Gd -Ox -GB -MD
! SFLAGS = -Wall
! LFLAGS = -release
! ifdef STATICLINK_ALLEGRO
! LIB_FLAGS = cgui_s.lib alleg_s.lib
else
! LIB_FLAGS = cgui.lib alleg.lib
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
--- 126,176 ----
_default: default
# -------- decide what compiler options to use --------
ifdef WARNMODE
! WFLAGS = -W3 -WX
else
! WFLAGS = -W1
endif
ifdef DEBUGMODE
! # -------- debugging build --------
! CFLAGS = -DDEBUGMODE=$(DEBUGMODE) $(WFLAGS) -Gd -Zi -MDd
! SFLAGS = -DDEBUGMODE=$(DEBUGMODE) -Wall
! LFLAGS = -debug -debugtype:cv
! ifdef STATICLINK
! LIB_FLAGS = cgui_s.lib alld_s.lib
! else
! LIB_FLAGS = cgui.lib alld.lib
! endif
else
! ifdef PROFILEMODE
! # -------- profiling build --------
! CFLAGS = $(WFLAGS) -Gd -Ox -GB -MD
! SFLAGS = -Wall
! LFLAGS = -profile
! ifdef STATICLINK
! LIB_FLAGS = cgui_s.lib allp_s.lib
! else
! LIB_FLAGS = cgui.lib allp.lib
! endif
! else
! # -------- optimised build --------
! CFLAGS = $(WFLAGS) -Gd -Ox -GB -MD
! SFLAGS = -Wall
! LFLAGS = -release
! ifdef STATICLINK
! LIB_FLAGS = cgui_s.lib alleg_s.lib
! else
! LIB_FLAGS = cgui.lib alleg.lib
! endif
! endif
endif
ifdef CCOM_DEVELOPING
! CFLAGS += -D_CCOM_DEVELOPING=1
endif
ifdef CCOM_FORTIFY
! CFLAGS += -D_CCOM_FORTIFY=1 -DFORTIFY
endif
***************
*** 248,253 ****
dinput.lib ddraw.lib dxguid.lib winmm.lib dsound.lib
-
-
# -------- List platform specific objects and programs. --------
--- 187,190 ----
***************
*** 262,337 ****
-
# -------- Define how to compile. --------
GCC2MSVC = -D_MSC_VER -D_WIN32 -D_M_IX86 -U__GNUC__ -UDJGPP -U__unix__
- COMPILE_C_TO_OBJ_DEPS = $(RUNNER_DEP)
define COMPILE_C_TO_OBJ
$(RUNNER) cl @ -nologo $(COMPILE_FLAGS) -I./include -Fo$@ -c $<
endef
- define COMPILE_C_TO_OBJ_NO_OPTIMIZE
- $(RUNNER) cl @ -nologo $(COMPILE_FLAGS_NO_OPTIMIZE) -I./include -Fo$@ -c $<
- endef
-
- COMPILE_S_TO_OBJ_DEPS = $(RUNNER_DEP)
- define COMPILE_S_TO_OBJ
- gcc $(GCC2MSVC) $(SFLAGS) -I./include -x assembler-with-cpp -o $@ -c $<
- endef
- LINK_OBJ_TO_EXE_DEPS = $(RUNNER_DEP)
define LINK_OBJ_TO_EXE
$(RUNNER) link @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
endef
- LINK_OBJ_TO_EXE_NOLIB_DEPS = $(RUNNER_DEP)
- define LINK_OBJ_TO_EXE_NOLIB
- $(RUNNER) link @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(LIB_FLAGS)
- endef
-
- LINK_ALL_OBJ_TO_EXE_DEPS = $(RUNNER_DEP)
- define LINK_ALL_OBJ_TO_EXE
- $(RUNNER) link @ -nologo $(LFLAGS) -subsystem:console -out:$@ $(filter-out $(RUNNER_DEP),$^) $(IMPLIB_NAME) $(LIB_FLAGS)
- endef
-
- LINK_ALL_OBJ_TO_EXE_NOLIB_DEPS = $(RUNNER_DEP)
- define LINK_ALL_OBJ_TO_EXE_NOLIB
- $(RUNNER) link @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $(filter-out $(RUNNER_DEP),$^) $(LIB_FLAGS)
- endef
-
- LINK_CONSOLE_DEPS = $(IMPLIB_NAME) $(RUNNER_DEP)
- define LINK_CONSOLE
- $(RUNNER) link @ -nologo $(LFLAGS) -subsystem:console -out:$@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
- endef
-
- LINK_CONSOLE_NOLIB_DEPS = $(RUNNER_DEP)
- define LINK_CONSOLE_NOLIB
- $(RUNNER) link @ -nologo $(LFLAGS) -subsystem:console -out:$@ $< $(LIB_FLAGS)
- endef
-
ifdef STATICLINK
! # link as a static library
!
! LINK_OBJ_TO_LIB_DEPS = $(RUNNER_DEP)
! define LINK_OBJ_TO_LIB
! $(RUNNER) lib @ -nologo -out:$(LIB_NAME) $(LIB_OBJS)
! endef
!
else
! # link as a DLL
!
! LINK_OBJ_TO_LIB_DEPS = $(RUNNER_DEP)
! define LINK_OBJ_TO_LIB
! $(RUNNER) link @ -nologo $(LFLAGS) -dll -def:$(EXPDEF_NAME) -out:$(DLL_NAME) -implib:$(IMPLIB_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
!
endif # ifdef STATICLINK
-
-
# -------- Rules for installing and removing the library files. --------
ifneq ($(wildcard $(DJDIR)/bin/cp.exe),)
! HAVE_CP = 1
endif
--- 199,230 ----
# -------- Define how to compile. --------
GCC2MSVC = -D_MSC_VER -D_WIN32 -D_M_IX86 -U__GNUC__ -UDJGPP -U__unix__
define COMPILE_C_TO_OBJ
$(RUNNER) cl @ -nologo $(COMPILE_FLAGS) -I./include -Fo$@ -c $<
endef
define LINK_OBJ_TO_EXE
$(RUNNER) link @ -nologo $(LFLAGS) -subsystem:windows -out:$@ $< $(IMPLIB_NAME) $(LIB_FLAGS)
endef
ifdef STATICLINK
! # link as a static library
! define LINK_OBJ_TO_LIB
! $(RUNNER) lib @ -nologo -out:$(LIB_NAME) $(LIB_OBJS)
! endef
else
! # link as a DLL
! define LINK_OBJ_TO_LIB
! $(RUNNER) link @ -nologo $(LFLAGS) -dll -def:$(EXPDEF_NAME) -out:$(DLL_NAME) -implib:$(IMPLIB_NAME) $(LIB_OBJS) $(LIB_FLAGS)
! endef
endif # ifdef STATICLINK
# -------- Rules for installing and removing the library files. --------
ifneq ($(wildcard $(DJDIR)/bin/cp.exe),)
! HAVE_CP = 1
endif
***************
*** 378,382 ****
ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
--- 271,275 ----
ifndef STATICLINK
! INSTALL_FILES += $(WINDIR_U)/$(DLL_BASENAME)
endif
***************
*** 392,404 ****
uninstall:
-rm -fv $(UNINSTALL_FILES)
@echo All gone!
-
-
- # -------- Compile anything that can't be done in makefile.all. --------
-
- # this section is empty
-
-
# -------- Generate automatic dependencies. --------
--- 285,291 ----
uninstall:
-rm -fv $(UNINSTALL_FILES)
+ -rm -frv $(SYSTEM_INCLUDE_DIR)/ccom
@echo All gone!
# -------- Generate automatic dependencies. --------
Index: zipup.sh
===================================================================
RCS file: /cvsroot/ccomx/ccomx/misc/zipup.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** zipup.sh 1 Feb 2004 18:05:11 -0000 1.2
--- zipup.sh 8 Feb 2004 11:35:09 -0000 1.3
***************
*** 48,55 ****
make texts
-
- echo remove old files...
- rm -fv ccom.zip
-
echo copy default makefile...
cp misc/emptymak makefile
--- 48,51 ----
***************
*** 60,71 ****
misc/dllsyms.lst misc/scanexp.c \
obj/*/*/*.dep lib/*/*.def \
! readme.txt readme.html docs/readme.info \
docs/*._tx \
src/*.c src/*.h src/*.t src/*.ht \
examples/*.c examples/*.cfg \
resource/* \
! include/*.h include/ccom/*.h \
! misc/runner.c \
! misc/makedoc/*.c misc/makedoc/*.h"
afiles=`echo $files | sed -e"s/\([^ ][^ ]*\)/ ccom\/\1/g"`
--- 56,65 ----
misc/dllsyms.lst misc/scanexp.c \
obj/*/*/*.dep lib/*/*.def \
! docs/readme.txt docs/readme.html docs/ccom.html docs/ccom.txt \
docs/*._tx \
src/*.c src/*.h src/*.t src/*.ht \
examples/*.c examples/*.cfg \
resource/* \
! include/*.h include/ccom/*.h
afiles=`echo $files | sed -e"s/\([^ ][^ ]*\)/ ccom\/\1/g"`
--- makefile.doc DELETED ---
|