diff options
Diffstat (limited to 'plugins/Scriver/MakefileA')
-rw-r--r-- | plugins/Scriver/MakefileA | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/Scriver/MakefileA b/plugins/Scriver/MakefileA new file mode 100644 index 0000000000..1aab253f0e --- /dev/null +++ b/plugins/Scriver/MakefileA @@ -0,0 +1,41 @@ +# Project: Scriver_a + +CPP = g++.exe +CC = gcc.exe +WINDRES = windres.exe +RM = rm +UPX = upx -9 -q --compress-icons=0 +SRC = cmdlist.c globals.c infobar.c input.c msgdialog.c msglog.c msgoptions.c msgs.c msgtimedout.c msgwindow.c richutil.c srmm.c sendqueue.c statusicon.c utils.c chat/clist.c chat/colorchooser.c chat/log.c chat/main.c chat/manager.c chat/message.c chat/options.c chat/services.c chat/tools.c chat/window.c +RES = resource.res +OBJ = $(SRC:.c=.o) $(RES) +INCS = -I"../../include" -I"../../include/msapi" +BIN = scriver.dll +CFLAGS = $(INCS) -DBUILDING_DLL=1 -fexpensive-optimizations -O3 -Os -fno-exceptions -Wno-error -Wall +CXXFLAGS = $(INCS) -DBUILDING_DLL=1 -fexpensive-optimizations -O3 -Os -fno-exceptions -Wno-error -Wall +# -save-temps +LIBS = -lshlwapi -lversion -lwsock32 -lole32 -lcomctl32 -luuid -loleaut32 +LFLAGS = -s -mdll -mwindows --add-stdcall-alias +#LFLAGS = -mdll -mwindows -Wl,-Map,ieview.map --no-export-all-symbols --add-stdcall-alias -g3 +RCFLAGS = -J rc -O coff +# --add-stdcall-alias -s --no-export-all-symbols + +.PHONY: all all-before all-after clean clean-custom + +all: all-before $(BIN) all-after +ifdef PACK + $(UPX) $(BIN) +endif + +clean: clean-custom + $(RM) -f $(OBJ) $(BIN) + +depend : + $(CPP) -MM $(CFLAGS) $(SRC)>MakefileA.dep + +$(RES): $(RES:.res=.rc) resource.h + $(WINDRES) $(RCFLAGS) -i $(RES:.res=.rc) -o $(RES) + +$(BIN): $(OBJ) + $(CPP) $(CFLAGS) $(OBJ) $(LIBS) $(LFLAGS) -o $(BIN) -Wl + +-include MakefileA.dep |