6 LIBS
=$(LIB_VIDEO
) $(LIB_AUDIO
) $(LIB_GLOBAL
)
9 GRUTATXT_DOCS
=doc
/QDGDF_Quick_Reference.html doc
/The_QDGDF_Cookbook.html
10 MP_DOCCER_DOCS
=doc
/qdgdf_api.txt
11 G_AND_MP_DOCS
=doc
/qdgdf_api.html
13 VIDEO_OBJS
=qdgdf_video.o qdgdf_video_ext.o qdgdf_video_font.o
$(VIDEO_DRV_OBJS
)
14 AUDIO_OBJS
=qdgdf_audio.o
$(AUDIO_DRV_OBJS
)
16 all: $(LIBS
) $(DOCS
) test
18 DIST_TARGET
=/tmp
/$(PROJ
)-$(VERSION
)
20 ##################################################################
26 $(CC
) $(CFLAGS
) `cat config.cflags` -c
$<
29 gcc
-MM
*.c
> makefile.depend
31 $(LIB_VIDEO
): $(VIDEO_OBJS
)
32 $(AR
) rsv
$(LIB_VIDEO
) $(VIDEO_OBJS
)
34 $(LIB_AUDIO
): $(AUDIO_OBJS
)
35 $(AR
) rsv
$(LIB_AUDIO
) $(AUDIO_OBJS
)
37 $(LIB_GLOBAL
): $(VIDEO_OBJS
) $(AUDIO_OBJS
)
38 $(AR
) rsv
$(LIB_GLOBAL
) $(VIDEO_OBJS
) $(AUDIO_OBJS
)
40 libqdgdfv.so
.0.0: $(VIDEO_OBJS
)
41 gcc
-g
-shared
-Wl
,-soname
,libqdgdfv.so
.0 -o
$@
$(VIDEO_OBJS
) -lc
43 libqdgdfa.so
.0.0: $(AUDIO_OBJS
)
44 gcc
-g
-shared
-Wl
,-soname
,libqdgdfa.so
.0 -o
$@
$(AUDIO_OBJS
) -lc
47 rm -f
$(MP_DOCCER_DOCS
) doc
/*.html
50 rm -f
$(LIBS
) $(OBJS
) *.o
tags *.gz
*.a
*.lib
*.so
.0.0 *.exe qdgdf_i
53 rm -f config.h config.
cflags config.
ldflags makefile.opts .config.log Makefile
55 realclean: distclean docsclean
57 realdistclean
: realclean
67 mp_doccer qdgdf_
*.c
-o doc
/qdgdf_api
-f grutatxt \
68 -a
"Angel Ortega - angel@triptico.com" \
69 -b
"This reference documents version $(VERSION) of the C API." \
73 mkdir
-p
$(DIST_TARGET
) ; \
74 tar cf
- * |
(cd
$(DIST_TARGET
) ; tar xf
-)
77 (cd
/tmp
; tar czf
- $(PROJ
)-$(VERSION
)/* ) > $(PROJ
)-$(VERSION
).
tar.gz
; \
81 install $(TARGET
) $(PREFIX
)/bin
82 mkdir
-p
$(PREFIX
)/share
/doc
/$(PROJ
)
83 cp doc
/* $(PREFIX
)/share
/doc
/$(PROJ
)
86 install -o root
-g root
-m
644 qdgdf_video.h qdgdf_audio.h qdgdf_video_ext.h
$(SHARED_INC_PREFIX
)
87 install -o root
-g root
-m
755 libqdgdfv.so
.0.0 libqdgdfa.so
.0.0 $(SHARED_LIB_PREFIX
)
88 -ln
-s
$(SHARED_LIB_PREFIX
)/libqdgdfv.so
.0.0 $(SHARED_LIB_PREFIX
)/libqdgdfv.so
89 -ln
-s
$(SHARED_LIB_PREFIX
)/libqdgdfa.so
.0.0 $(SHARED_LIB_PREFIX
)/libqdgdfa.so
92 qdgdf_i
$(TARGET_EXT
): qdgdf_i.c
$(LIB_GLOBAL
)
93 $(CC
) `cat config.cflags` $< -L.
-lqdgdf
`cat config.ldflags` -o
$@
96 test: qdgdf_i
$(TARGET_EXT
)