-
Notifications
You must be signed in to change notification settings - Fork 84
/
Makefile
42 lines (31 loc) · 1.36 KB
/
Makefile
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
# Makefile for src/mod/ctcp.mod/
srcdir = .
doofus:
@echo "" && \
echo "Let's try this from the right directory..." && \
echo "" && \
cd ../../../ && $(MAKE)
static: ../ctcp.o
modules: ../../../ctcp.$(MOD_EXT)
../ctcp.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/ctcp.c && mv -f ctcp.o ../
../../../ctcp.$(MOD_EXT): ../ctcp.o
$(LD) $(CFLAGS) -o ../../../ctcp.$(MOD_EXT) ../ctcp.o $(XLIBS) $(MODULE_XLIBS) && $(STRIP) ../../../ctcp.$(MOD_EXT)
depend:
$(CC) $(CFLAGS) -MM $(srcdir)/ctcp.c -MT ../ctcp.o > .depend
clean:
@rm -f .depend *.o *.$(MOD_EXT) *~
distclean: clean
#safety hash
../ctcp.o: .././ctcp.mod/ctcp.c .././ctcp.mod/ctcp.h \
../../../src/mod/module.h ../../../src/main.h ../../../config.h \
../../../eggint.h ../../../lush.h ../../../src/lang.h \
../../../src/eggdrop.h ../../../src/compat/in6.h ../../../src/flags.h \
../../../src/cmdt.h ../../../src/tclegg.h ../../../src/tclhash.h \
../../../src/chan.h ../../../src/users.h ../../../src/compat/compat.h \
../../../src/compat/inet_aton.h ../../../src/compat/snprintf.h \
../../../src/compat/memset.h ../../../src/compat/memcpy.h \
../../../src/compat/strcasecmp.h ../../../src/compat/strftime.h \
../../../src/compat/inet_ntop.h ../../../src/compat/inet_pton.h \
../../../src/compat/gethostbyname2.h ../../../src/mod/modvals.h \
../../../src/tandem.h ../../../src/mod/server.mod/server.h