📄 makefile.mingw
字号:
# *NTSE* the NT services helper library
#
# Copyright (c) 2000-2003 Timofei Bondarenko
#
# Makefile for MinGW/gcc
#
#############################################################
CCDIR =d:/tools/mingw
MSDIR =d:/Program\ Files/Microsoft\ Visual\ Studio/vc98
#INCLUDES = -I$(CCDIR)/include
INCLUDES =-I../ntse -I../unilog -I../lightopc -I../lightopc/opc-fnd
#OPTS=-DNONAMELESSUNION
# Bug in gcc prior v3.1 - members of a nameless unions in "C" have zero
# offset relatively to containing struct. So we used -xc++ here.
#
# Uncomment the next line for gcc v2.95.3-7
#GCC_FLAGS =-xc++ -fvtable-thunks=2
# Uncomment the next line for gcc v3.1
GCC_FLAGS =-fno-exceptions
#-fno-enforce-eh-specs -mno-align-stringops
#-falign-functions=1 -falign-loops=1 -falign-labels=1 -falign-jumps=1
# -DUSE_LOG=-1 will remove any references to unilog.dll
# -DTEST_SVC will remove OPC code
CFLAGS_DEBUG=-s -Os -mcpu=i686 -DUSE_LOG=ll_DEBUG $(GCC_FLAGS)
# Yes! I've tried out them all. -Os gave the fastest code on P4...
ULOPTS =-DUL_PUBLIC=__declspec(dllimport)
CFLAGS =-mthreads $(CFLAGS_DEBUG) $(ULOPTS)
#-Wall -Wno-parentheses
# Uncomment one choice:
#SUBSYSTEM=-Wl,--subsystem,windows
SUBSYSTEM=-Wl,--subsystem,console
LIBS =-L../ntse -L../unilog -L../lightopc \
-lntse -lunilog -lightopc \
-lunilog -ladvapi32 -lole32 -loleaut32 -luuid \
-lstdc++
# On gcc3.2 -lsupc++ may gaves some gain over -lstdc++
CC=gcc
LD=gcc
RC=windres -o $@
.SUFFIXES: .rc .lib .def .dll
ALLTARG = samp_svc.exe
############################################################
# Objects & common rules
O=.o
RES=.o
include objects.mk
samp_svc.exe: $(OBJS)
$(LD) -o$@ $^ $(LIBS) -s -Wl,-M > samp_svc.map
# strip $(DLL)
ntse-lib:
cd ../ntse
echo cd ..\ntse > makentse.bat
echo $(MAKE) -f makefile.MINGW all >> makentse.bat
makentse.bat
-del makentse.bat
ntse-clean:
echo cd ..\ntse > makentse.bat
echo $(MAKE) -f makefile.MINGW clean >> makentse.bat
makentse.bat
-del makentse.bat
####################### the end ###########################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -