-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (52 loc) · 1.6 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
EXEC=bsfliterm
#EXEC=bsflite.exe
#CC=i586-pc-msdosdjgpp-gcc
#CC=mingw32-gcc
CC=gcc
#
# Add -DDUMP_PROFILE to dump all HTML profiles to a file.
# Edit PROFILE_DUMP_PATH in bsf.h to set the path.
# (This is useful if you'd like to see profiles properly
# formatted with your web browser.)
#
CFLAGS=-Os -pipe
#CFLAGS+=-I/usr/local/cross-tools/watt/inc
#
# Add -lsocket -lnsl for Solaris
# Add -lsocket -lbind for Zeta R1 (and potentially BeOS)
# (thanks to Brennan Cleveland)
#
LIBS=-limcomm
#LIBS+=-lwatt
#LIBS+=-lwsock32
LDFLAGS=-Limcomm/ -s
#LDFLAGS+=-L/usr/local/cross-tools/watt/lib
INSTALL=/usr/bin/install
INSTALL_PREFIX=/usr/local
SOURCES=aim.c away.c bsf.c cleaner.c config.c conn.c input.c log.c out.c queue.c util.c
OBJECTS=aim.o away.o bsf.o cleaner.o config.o conn.o input.o log.o out.o queue.o util.o
all:
(cd imcomm && $(MAKE) $(MFLAGS))
$(MAKE) $(MFLAGS) $(EXEC)
$(EXEC):$(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(EXEC) $(OBJECTS) $(LIBS)
clean:
rm -f *.o *~ $(EXEC)
realclean:
(cd imcomm && $(MAKE) clean)
$(MAKE) clean
install:
$(INSTALL) -s -m 755 bsfliterm $(INSTALL_PREFIX)/bin
$(INSTALL) -m 644 bsflite.1 $(INSTALL_PREFIX)/man/man1
aim.o: bsf.h colors.h imcomm/imcomm.h
away.o: bsf.h colors.h imcomm/imcomm.h
bsf.o: bsf.h colors.h imcomm/imcomm.h
cleaner.o: bsf.h colors.h imcomm/imcomm.h
config.o: bsf.h colors.h imcomm/imcomm.h
conn.o: bsf.h colors.h imcomm/imcomm.h
input.o: bsf.h colors.h imcomm/imcomm.h
log.o: bsf.h colors.h imcomm/imcomm.h
out.o: bsf.h colors.h imcomm/imcomm.h
queue.o: bsf.h colors.h imcomm/imcomm.h
util.o: bsf.h colors.h imcomm/imcomm.h
$(EXEC): imcomm/libimcomm.a