File: Makefile

package info (click to toggle)
hnb 1.9.18-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,672 kB
  • ctags: 1,553
  • sloc: ansic: 8,199; pascal: 486; makefile: 112
file content (20 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# CFLAGS = -Wall

OBJS = cli.o cli_history.o cli_tokenize.o

all: libcli.a libcli.so test-static test-shared 

clean:
	rm -f *.o *.a *.so test-s* *~
libcli.a: $(OBJS)
	ar rc libcli.a cli*.o
libcli_p.a: 
	$(CC) -pg -c cli.c
	$(CC) -pg -c cli_history.c
	ar rcs libcli_p.a cli*.o
libcli.so: $(OBJS)
	$(CC) -shared cli*.o -o libcli.so $(CFLAGS) $(LIBS)
test-static: test.o libcli.a
	$(CC) -o test-static test.o libcli.a $(CFLAGS) $(LIBS) 
test-shared: test.o libcli.so
	$(CC) -o test-shared test.o -L. -lcli $(CFLAGS) $(LIBS)