summaryrefslogtreecommitdiff
path: root/src/makefile.win32
blob: 8b60c347403b72fb131d8bb7ff9ead4506b36d57 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Make file for Win32
#
# (C) 2003-2005 Anope Team
# Contact us at info@anope.org
#
# Please read COPYING and README for further details.
#
# Based on the original code of Epona by Lara.
# Based on the original code of Services by Andy Church. 
# 
# $Id:$ 
#

# Source Makefile

include ../Makefile.inc.win32

###########################################################################

OBJS =  actions.obj base64.obj botserv.obj channels.obj chanserv.obj commands.obj compat.obj \
        config.obj datafiles.obj encrypt.obj events.obj helpserv.obj hostserv.obj \
        init.obj language.obj list.obj log.obj mail.obj main.obj memory.obj memoserv.obj \
        messages.obj misc.obj modules.obj news.obj nickserv.obj operserv.obj \
        process.obj send.obj servers.obj sessions.obj slist.obj sockutil.obj \
        timeout.obj users.obj $(RDB_O) $(MYSQL_O) $(CAPAB_O)
        
SRCS =  actions.c base64.c botserv.c channels.c chanserv.c commands.c compat.c \
        config.c datafiles.c encrypt.c events.c helpserv.c hostserv.c init.c language.c list.c \
		log.c mail.c main.c memory.c memoserv.c messages.c misc.c modules.c news.c nickserv.c \
		operserv.c process.c send.c servers.obj sessions.c slist.c sockutil.c \
        timeout.c users.c $(RDB_C) $(MYSQL_C) $(CAPAB_C)

###########################################################################
        
.c.obj:
        $(CC) $(CFLAGS) $(IRCTYPE) -c $<

all: $(PROGRAM)

$(PROGRAM): $(OBJS) win32.res
        $(CC) $(OBJS) win32.res /link /out:$(PROGRAM) /implib:anope.lib $(LIBS) $(LFLAGS) $(MLIBS) $(ELIBS)

spotless:
        -@erase *.obj *.exe *.exp *.lib tools\*.exe *.res
        
install:
        -@copy anope.exe ..\anope.exe
        -@copy tools\anopesmtp.exe ..\anopesmtp.exe
        -@mkdir ..\$(DATDEST)\bin
        -@copy  bin\* ..\$(DATDEST)\bin

win32.res: win32.rc
        $(RC) /l 0x409 /fowin32.res win32.rc

      
###########################################################################
        
# Catch any changes in compilation options at the top of this file
$(OBJS):

actions.obj:        actions.c        ..\include\services.h
base64.obj:        base64.c        ..\include\services.h
botserv.obj:        botserv.c        ..\include\services.h ..\include\pseudo.h ..\include\language.h
channels.obj:        channels.c        ..\include\services.h
chanserv.obj:        chanserv.c        ..\include\services.h ..\include\pseudo.h
commands.obj:        commands.c        ..\include\services.h ..\include\commands.h ..\include\language.h
compat.obj:        compat.c        ..\include\services.h
config.obj:        config.c        ..\include\services.h
datafiles.obj:        datafiles.c        ..\include\services.h ..\include\datafiles.h
encrypt.obj:        encrypt.c        ..\include\encrypt.h ..\include\sysconf.h
events.obj:		 	events.c		 ..\include\modules.h ..\include\language.h ..\include\version.h
init.obj:                init.c                ..\include\services.h
hostserv.obj:     hostserv.c      ..\include\services.h ..\include\pseudo.h
language.obj:        language.c        ..\include\services.h ..\include\language.h
list.obj:                list.c                ..\include\services.h
log.obj:                log.c                ..\include\services.h ..\include\pseudo.h
mail.obj:                mail.c                ..\include\services.h ..\include\language.h
main.obj:                main.c                ..\include\services.h ..\include\timeout.h ..\include\version.h
memory.obj:        memory.c        ..\include\services.h
memoserv.obj:        memoserv.c        ..\include\services.h ..\include\pseudo.h
messages.obj:        messages.c        ..\include\services.h ..\include\messages.h ..\include\language.h
modules.obj:		 modules.c			..\include\modules.h ..\include\language.h ..\include\version.h
misc.obj:                misc.c                ..\include\services.h ..\include\language.h
news.obj:                news.c                ..\include\services.h ..\include\pseudo.h
nickserv.obj:        nickserv.c        ..\include\services.h ..\include\pseudo.h
operserv.obj:        operserv.c        ..\include\services.h ..\include\pseudo.h
process.obj:        process.c        ..\include\services.h ..\include\messages.h
send.obj:                send.c                ..\include\services.h
servers.obj:     servers.c      ..\include\services.h
sessions.obj:     sessions.c      ..\include\services.h ..\include\pseudo.h
slist.obj:        slist.c                ..\include\services.h ..\include\slist.h
sockutil.obj:        sockutil.c        ..\include\services.h
timeout.obj:        timeout.c        ..\include\services.h ..\include\timeout.h
users.obj:        users.c                ..\include\services.h
vsnprintf.obj:        vsnprintf.c

###########################################################################

..\include\services.h: ..\include\sysconf.h ..\include\config.h ..\include\extern.h

..\include\extern.h: ..\include\slist.h

..\include\pseudo.h: ..\include\commands.h ..\include\language.h ..\include\timeout.h ..\include\encrypt.h ..\include\datafiles.h ..\include\slist.h
        
###########################################################################

FRC: