-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 791 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 791 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
#########################################
# makefile for libmtnops #
################objects##################
LIBMTNOPS_OBJS = ngserver.o ngclient.o configure.o
###############binaries##################
all: clean libmtnops.a server_example client_example
ngserver.o: ngserver.c libmtnops.h
gcc -c ngserver.c
ngclient.o: ngclient.c libmtnops.h
gcc -c ngclient.c
configure.o: configure.c libmtnops.h
gcc -c configure.c
libmtnops.a: $(LIBMTNOPS_OBJS)
ar rcs $@ $^
server_example: server_example.c libmtnops.a
gcc server_example.c -L. -lmtnops -o server_example
client_example: client_example.c libmtnops.a
gcc client_example.c -L. -lmtnops -o client_example
###############Utilities################
clean:
rm -rf *.o *.a server_example client_example