2003-02-16 21:07:21 +01:00
|
|
|
# $Id$
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
CC = @CC@
|
2004-09-26 22:46:43 +02:00
|
|
|
CFLAGS = @CFLAGS@ @ERLANG_CFLAGS@
|
2003-10-17 21:15:38 +02:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2004-09-26 22:46:43 +02:00
|
|
|
LIBS = @LIBS@ @ERLANG_LIBS@ @LIBICONV@
|
2003-10-17 21:15:38 +02:00
|
|
|
|
|
|
|
SUBDIRS =
|
2003-02-16 21:07:21 +01:00
|
|
|
|
|
|
|
ERLSHLIBS = ../iconv_erl.so
|
|
|
|
|
|
|
|
OUTDIR = ..
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
|
|
OBJS = \
|
|
|
|
$(OUTDIR)/mod_irc.beam \
|
|
|
|
$(OUTDIR)/mod_irc_connection.beam \
|
|
|
|
$(OUTDIR)/iconv.beam
|
|
|
|
|
|
|
|
all: $(OBJS) $(ERLSHLIBS)
|
|
|
|
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
2004-11-05 22:14:31 +01:00
|
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
2003-02-16 21:07:21 +01:00
|
|
|
|
|
|
|
#all: $(ERLSHLIBS)
|
|
|
|
# erl -s make all report "{outdir, \"..\"}" -noinput -s erlang halt
|
|
|
|
|
|
|
|
$(ERLSHLIBS): ../%.so: %.c
|
2004-09-26 22:46:43 +02:00
|
|
|
$(CC) -Wall $(INCLUDES) $(CFLAGS) $(LDFLAGS) \
|
|
|
|
$(subst ../,,$(subst .so,.c,$@)) $(LIBS) \
|
|
|
|
-o $@ -fpic -shared
|
2003-02-16 21:07:21 +01:00
|
|
|
|
|
|
|
clean:
|
2003-10-17 21:15:38 +02:00
|
|
|
rm -f $(OBJS) $(ERLSHLIBS)
|
2003-02-16 21:07:21 +01:00
|
|
|
|
2004-05-17 22:36:41 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
2003-02-16 21:07:21 +01:00
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|