Annotation of ansh/src/Makefile, revision 1.1.1.1
1.1 misho 1: #
2: # (C) 2011 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
3: # by Michael Pounov <misho@elwix.org>
4: #
5: # $Author: misho $
6: # $Id: Makefile.in,v 1.2.2.3 2011/06/08 13:16:18 misho Exp $
7: #
8:
9: prefix = /usr/local
10: exec_prefix = ${prefix}
11: includedir = ${prefix}/include
12: libdir = ${exec_prefix}/lib
13:
14: OS = FreeBSD
15:
16: CC = gcc
17: MKDEP = mkdep
18:
19: BIN = ../bin
20: INC = ../inc
21:
22: LDADD = -lcrypto -laitsched -laitcrc -laitio
23:
24: CFLAGS = -I. -I${INC} -I${includedir} -Wall -O2 -fPIC -g
25: LDFLAGS = -L. -L${libdir}
26:
27: SRCS = ${ANSHD_SRCS} ${ANSH_SRCS} ${ANSH3D_SRCS} ${ANSH3_SRCS}
28: PROGS = ${ANSHD_PROG} ${ANSH_PROG} ${ANSH3D_PROG} ${ANSH3_PROG}
29:
30: ANSHD_SRCS = anshd.c compile.c utils.c daemon2.c proc.c
31: ANSHD_OBJS = anshd.o compile.o utils.o daemon2.o proc.o
32: ANSHD_PROG = anshd
33:
34: ANSH_SRCS = ansh.c compile.c utils.c client2.c
35: ANSH_OBJS = ansh.o compile.o utils.o client2.o
36: ANSH_PROG = ansh
37:
38: ANSH3D_SRCS = ansh3d.c compile.c utils.c daemon3.c proc.c
39: ANSH3D_OBJS = ansh3d.o compile.o utils.o daemon3.o proc.o
40: ANSH3D_PROG = ansh3d
41:
42: ANSH3_SRCS = ansh3.c compile.c utils.c client3.c
43: ANSH3_OBJS = ansh3.o compile.o utils.o client3.o
44: ANSH3_PROG = ansh3
45:
46:
47: all: depend \
48: ${PROGS} \
49:
50: depend:
51: ./compile.sh
52: ${MKDEP} ${CFLAGS} ${SRCS}
53:
54: clean:
55: rm -f *.o .depend compile.c *~
56:
57: install:
58:
59: .o: compile.c
60: ${CC} -c ${CFLAGS} $<
61:
62: ${ANSHD_PROG}: ${ANSHD_OBJS}
63: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ANSHD_OBJS} ${LDADD}
64:
65: ${ANSH_PROG}: ${ANSH_OBJS}
66: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ANSH_OBJS} ${LDADD}
67:
68: ${ANSH3D_PROG}: ${ANSH3D_OBJS}
69: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ANSH3D_OBJS} ${LDADD}
70:
71: ${ANSH3_PROG}: ${ANSH3_OBJS}
72: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ANSH3_OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>