File: Makefile

package info (click to toggle)
sipcrack 0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 252 kB
  • sloc: ansic: 2,568; makefile: 53; sh: 1
file content (30 lines) | stat: -rw-r--r-- 787 bytes parent folder | download
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
CC 		= gcc
FLAGS 		= -O2 ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} #-DDEBUG -g -Wall -pedantic
LIBS		= 
LIBSSL		= -lcrypto
LIBPCAP		= -lpcap
SIPCRACK	= SIPcrack.c
SIPDUMP         = SIPdump.c
OBJS		= wrap.o debug.o
MD5		= md5.o

.PHONY:		default no-openssl clean

.c.o:
		${CC} ${FLAGS} -c $< 

default:	${SIPCRACK} ${SIPDUMP} ${OBJS}
		${CC} ${FLAGS} -o sipcrack ${OBJS} ${SIPCRACK} ${LIBS} ${LIBSSL}
		${CC} ${FLAGS} -o sipdump  ${OBJS} ${SIPDUMP} ${LIBS} ${LIBPCAP}
		@echo \* All done

no-openssl:	${SIPCRACK} ${SIPDUMP} ${OBJS} ${MD5}
		${CC} ${FLAGS} -o sipcrack -DNO_OPENSSL ${OBJS} ${MD5} ${SIPCRACK} ${LIBS}
		${CC} ${FLAGS} -o sipdump  ${OBJS} ${SIPDUMP} ${LIBS} ${LIBPCAP}
		@echo \* All done

clean:
		rm -f sipdump sipcrack *.o

SIPcrack.o:	global.h wrap.h
SIPdump.o:	global.h wrap.h