forked from z0rc/megahal.mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 773 Bytes
/
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
# Makefile for src/mod/megahal.mod/
doofus:
@echo ""
@echo "Let's try this from the right directory..."
@echo ""
@cd ../../../; make
static: ../megahal.o
modules: ../../../megahal.so
../megahal.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c megahal.c
rm -f ../megahal.o
mv megahal.o ../
../../../megahal.so: ../megahal.o
$(LD) -o ../../../megahal.so ../megahal.o
$(STRIP) ../../../megahal.so
depend:
$(CC) $(CFLAGS) $(CPPFLAGS) -MM *.c > .depend
clean:
@rm -f .depend *.o *.so *~
#safety hash
../megahal.o: megahal.c megahal.h ../module.h ../../../config.h \
../../main.h ../../lang.h ../../eggdrop.h ../../flags.h ../../proto.h \
../../../lush.h ../../cmdt.h ../../tclegg.h ../../tclhash.h \
../../chan.h ../../users.h ../modvals.h ../../tandem.h