summaryrefslogtreecommitdiffstats
path: root/vidix/Makefile
blob: 75e83968d44d834a9ccbb0b5599685be7c97f260 (plain)
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
include ../config.mak

LIBNAME = libvidix.a

SRCS    = vidixlib.c
OBJS	= $(SRCS:.c=.o)

CFLAGS  = $(OPTFLAGS)

all:	$(LIBNAME)
	$(MAKE) -C drivers

$(LIBNAME):	$(OBJS)
	$(AR) r $@ $^
	$(RANLIB) $@

clean:
	rm -f *.o *.a *~
	$(MAKE) -C drivers clean

distclean: clean
	rm -f .depend test
	$(MAKE) -C drivers distclean

dep depend:
	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
	$(MAKE) -C drivers depend

-include .depend