summaryrefslogtreecommitdiff
path: root/src/modules/Makefile.FreeBSD
blob: 75f6f6ab2d23999fbcf3dd488726114b9dee4f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# (C) ChatSpike development team
# Makefile by <Craig@ChatSpike.net>
# Small modifications by <brain@ChatSpike.net>
#

CXXFLAGS = -I../../include ${FLAGS}

MODS = `/bin/ls *.cpp | sed 's/.cpp//'`
MODULES = $(MODS)

MODS2 = `/bin/ls *.cpp`
MODULES2 = $(MODS2:.cpp=.so)

main:
	rm -f .make ; \
	for i in $(MODULES) ; do \
		echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \
	done ; chmod u+x .make ; ./.make


all: main