comparison Makefile @ 43:ab64a3fc62bf libavcodec

Portability and testing issues
author nickols_k
date Wed, 08 Aug 2001 16:26:51 +0000
parents a524484f9adf
children 4bfc845cdfea
comparison
equal deleted inserted replaced
42:8068c4bce9c1 43:ab64a3fc62bf
35 35
36 LIB= libavcodec.a 36 LIB= libavcodec.a
37 TESTS= imgresample-test dct-test 37 TESTS= imgresample-test dct-test
38 38
39 all: $(LIB) 39 all: $(LIB)
40 tests: apiexample $(TESTS) 40 tests: apiexample cpuid_test $(TESTS)
41 41
42 $(LIB): $(OBJS) $(ASM_OBJS) 42 $(LIB): $(OBJS) $(ASM_OBJS)
43 rm -f $@ 43 rm -f $@
44 $(AR) rcs $@ $(OBJS) $(ASM_OBJS) 44 $(AR) rcs $@ $(OBJS) $(ASM_OBJS)
45 45
68 68
69 # api example program 69 # api example program
70 apiexample: apiexample.c $(LIB) 70 apiexample: apiexample.c $(LIB)
71 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm 71 $(CC) $(CFLAGS) -o $@ $< $(LIB) -lm
72 72
73 # cpuid test
74 cpuid_test: i386/cputest.c
75 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
76
73 # testing progs 77 # testing progs
74 78
75 imgresample-test: imgresample.c 79 imgresample-test: imgresample.c
76 $(CC) $(CFLAGS) -DTEST -o $@ $^ 80 $(CC) $(CFLAGS) -DTEST -o $@ $^
77 81