view vidix/Makefile @ 22545:effb4c7d9c1a

Simplify library generation rule.
author diego
date Wed, 14 Mar 2007 08:43:30 +0000
parents 22aee0fa42a4
children 322fed4ddef2
line wrap: on
line source

LIBNAME = libvidix.a

include ../config.mak

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