summary refs log tree commit diff stats
path: root/plugins/xtray/makefile.mak
blob: f5fdb44ebb097ddbfda29a6695945bc6a3fd44b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include "..\..\src\makeinc.mak"

TARGET = xtray.dll

TRAY_OBJECTS = \
callbacks.obj \
sdAlerts.obj \
sdTray.obj \
utility.obj \
xchat.obj \
xtray.obj

CPPFLAGS = $(CPPFLAGS) /D_STL70_ /D_STATIC_CPPLIB /EHsc

all: $(TRAY_OBJECTS) $(TARGET)

xtray.def:
	echo EXPORTS > xtray.def
	echo xchat_plugin_init >> xtray.def
	echo xchat_plugin_deinit >> xtray.def

.cpp.obj:
	$(CC) $(CPPFLAGS) /c $<

res:
	rc resource.rc
	
$(TARGET): $(TRAY_OBJECTS) xtray.def res
	$(LINK) /DLL /out:$(TARGET) $(LDFLAGS) $(TRAY_OBJECTS) ntstc_msvcrt.lib $(LIBS) /def:xtray.def resource.res

clean:
	del $(TARGET)
	del *.obj
	del xtray.def
	del resource.res
	del *.lib
	del *.exp