File: Makefile

package info (click to toggle)
vstream-client 1.2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 548 kB
  • sloc: ansic: 4,307; sh: 92; awk: 59; makefile: 42
file content (32 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (6)
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
include config.mak

LIBNAME = libvstream-client.a

SRCS = mfs.c object.c schema.c query.c util.c io.c partition.c crc.c vstream.c

INSTALL = install

OBJS	= $(SRCS:.c=.o)
INCLUDE = -I..
LDFLAGS += $(SOCKLIB)
CFLAGS  += $(INCLUDE)

all:	$(LIBNAME) vstream-client

install:	$(LIBNAME) vstream-client
	$(INSTALL) -m 755 vstream-client $(BINDIR)/vstream-client
	$(INSTALL) -m 644 $(LIBNAME) $(LIBDIR)/$(LIBNAME)
	$(INSTALL) -m 644 vstream-client.h $(INCDIR)/vstream-client.h

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

$(LIBNAME):	$(OBJS)
	$(AR) r $(LIBNAME) $(OBJS)

vstream-client: $(LIBNAME) test-client.c
	$(CC) $(CFLAGS) test-client.c $(LIBNAME) -o vstream-client $(LDFLAGS)

clean:
	rm -f *.o *.a *~ vstream-client vstream-client.exe