~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/tools/coLunacyDNS/Makefile.cygwin -rw-r--r-- 883 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 9 months ago
                                                                                
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
# To use another CC, invoke as "make CC=clang" or some such
CC = gcc
# To use other flags, invoke as "make CFLAGS=-g -DCYGWIN" or some such
CFLAGS = -O3 -DCYGWIN

all: coLunacyDNS HalfSipHash1-3 

clean: 
	rm -f *.o *.exe coLunacyDNS sipHash HalfSipHash1-3 ; \
    cd ../../lunacy ; make clean

../../lunacy/liblua.a:
	cd ../../lunacy ; make CC="${CC}" CFLAGS="${CFLAGS}" ; \
    cd ../tools/coLunacyDNS

coLunacyDNS.o: coLunacyDNS.c
	${CC} ${CFLAGS} -DCYGWIN -c -Wall -o coLunacyDNS.o coLunacyDNS.c 	

coLunacyDNS: coLunacyDNS.o ../../lunacy/liblua.a
	${CC} ${CFLAGS} -Wall -o coLunacyDNS coLunacyDNS.o \
    ../../lunacy/liblua.a -lm

HalfSipHash1-3.o: HalfSipHash1-3.c 
	${CC} ${CFLAGS} -c -Wall -o  HalfSipHash1-3.o HalfSipHash1-3.c

HalfSipHash1-3: HalfSipHash1-3.o ../../lunacy/liblua.a
	${CC} ${CFLAGS} -Wall -o HalfSipHash1-3 HalfSipHash1-3.o \
    ../../lunacy/liblua.a -lm