File: Makefile.linux

package info (click to toggle)
wcstools 3.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,820 kB
  • ctags: 4,516
  • sloc: ansic: 107,558; sh: 270; makefile: 264; sed: 4
file content (49 lines) | stat: -rw-r--r-- 1,428 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
# If your system is BSD based, please define BSD specifically.
#
# If you are running Solaris, 
# you need to define _NO_PROTO when you compile them
# you need to link your object files with -lsocket and -lnsl 
# to make executable.
# you don't need to do ranlib to build the library libnedcli.a

CFLAGS = -g -DBSD -DLINUX

SRC = ned_cif.c ned_cli.c ned_err.c ned_sk.c
OBJ = ned_cif.o ned_cli.o ned_err.o ned_sk.o

all : nedname nedpos name_resolver  byname nearname nearposn iau ex_refcode ref

nedpos: libnedcli.a nedpos.o ../wcstools/libwcs/libwcs.a
	cc -o nedpos nedpos.o ../wcstools/libwcs/libwcs.a libnedcli.a -lm

nedname: libnedcli.a nedname.o ../wcstools/libwcs/libwcs.a
	cc -o nedname nedname.o ../wcstools/libwcs.a libnedcli.a

name_resolver: libnedcli.a name_resolver.o
	cc -o name_resolver name_resolver.o libnedcli.a -lm 

byname: libnedcli.a byname.o
	cc -o byname byname.o libnedcli.a -lm 

nearname: libnedcli.a nearname.o
	cc -o nearname nearname.o libnedcli.a -lm 

nearposn: libnedcli.a nearposn.o
	cc -o nearposn nearposn.o libnedcli.a -lm

iau: libnedcli.a iau.o
	cc -o iau iau.o libnedcli.a -lm 

ex_refcode: libnedcli.a ex_refcode.o
	cc -o ex_refcode ex_refcode.o libnedcli.a -lm 

ref: libnedcli.a ref.o
	cc -o ref ref.o libnedcli.a -lm 

libnedcli.a: $(OBJ)
	ar rcu libnedcli.a $(OBJ)
	ranlib libnedcli.a

clean:
	rm -f nedname nedpos byname ex_refcode iau name_resolver nearname nearposn ref *.o *.a