forked from nunojpg/ntripclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (27 loc) · 831 Bytes
/
makefile
File metadata and controls
37 lines (27 loc) · 831 Bytes
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
# $Id: makefile,v 1.8 2010/03/24 13:17:06 stoecker Exp $
# probably works not with all compilers. Thought this should be easy
# fixable. There is nothing special at this source.
ifdef windir
CC = gcc
OPTS = -std=gnu99 -Wall -W -O3 -DWINDOWSVERSION
LIBS = -lwsock32 -lcurl
else
OPTS = -std=gnu99 -Wall -W -O3
LIBS = -lcurl
endif
DEBUG_OPTS = -DNTRIPCLIENT_DEBUG_LOG
TARGET_NAME = ntripclient
ntripclient: ntripclient.c serial.c
$(CC) $(OPTS) ntripclient.c -o $@ $(LIBS)
debug: ntripclient.c serial.c
$(CC) $(OPTS) $(DEBUG_OPTS) ntripclient.c -o $(TARGET_NAME) $(LIBS)
.PHONY : debug
clean:
$(RM) ntripclient core*
.PHONY : clean
archive:
zip -9 ntripclient.zip ntripclient.c makefile README serial.c
.PHONY : archive
tgzarchive:
tar -czf ntripclient.tgz ntripclient.c makefile README serial.c
.PHONY : tgzarchive