-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
46 lines (36 loc) · 1.39 KB
/
Makefile.in
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
# $Id: Makefile.in 110 2012-02-13 03:07:47Z gyunaev $
CC = @CC@
CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@
AR=@AR@ cr
RANLIB=@RANLIB@
INCLUDES=-I../include
DESTDIR=
APIVERSION = 1
OBJS = libircclient.o
all: @TARGET@
static: libircclient.a
shared: libircclient.so
shared_mingw: libircclient.dll
install:
-mkdir -p $(DESTDIR)@prefix@/include
-mkdir -p $(DESTDIR)@libdir@
cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h
cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h
cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h
cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h
cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h
cp libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION)
ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so
libircclient.so: libircclient.o
$(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LIBS@
libircclient.dll: libircclient.o
$(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@
libircclient.a: libircclient.o
$(AR) libircclient.a libircclient.o
$(RANLIB) libircclient.a
clean:
rm -f libircclient.a libircclient.o
distclean: clean
-rm -f Makefile
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<