diff options
Diffstat (limited to 'vidix/Makefile')
-rw-r--r-- | vidix/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vidix/Makefile b/vidix/Makefile new file mode 100644 index 0000000000..0e964faa90 --- /dev/null +++ b/vidix/Makefile @@ -0,0 +1,39 @@ + +LIBNAME = libvidix.a + +include ../config.mak + +SRCS = vidixlib.c +OBJS = $(SRCS:.c=.o) + +CFLAGS = $(OPTFLAGS) -W -Wall + +.SUFFIXES: .c .o + +# .PHONY: all clean + +.c.o: + $(CC) -c $(CFLAGS) -o $@ $< + +$(LIBNAME): $(OBJS) + $(AR) r $(LIBNAME) $(OBJS) + +all: $(LIBNAME) + +clean: + rm -f *.o *.a *~ + +distclean: + rm -f test *.o *.a *~ .depend + +dep: depend + +depend: + $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend + +# +# include dependency files if they exist +# +ifneq ($(wildcard .depend),) +include .depend +endif |