summaryrefslogtreecommitdiffstats
path: root/keygen/Makefile
blob: de4da20912c84ef1dca4d3bcf132940aedc581a5 (plain)
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
# libvnc makefile

KEYGENOBJ = keygen.o os_calls.o ssl_calls.o

DEFINES =

CFLAGS = -Wall -O2 -I../common $(DEFINES)
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS =
LIBS = -ldl -lcrypto
CC = gcc

all: keygen_

keygen_: $(KEYGENOBJ)
	$(CC) $(LDFLAGS) -o keygen $(KEYGENOBJ) $(LIBS)

clean:
	rm -f $(KEYGENOBJ) keygen

os_calls.o: ../common/os_calls.c
	$(CC) $(C_OS_FLAGS) ../common/os_calls.c

ssl_calls.o: ../common/ssl_calls.c
	$(CC) $(C_OS_FLAGS) ../common/ssl_calls.c