add support for the getbits plugin
[platform/upstream/gstreamer.git] / win32 / Makefile.register
1 # Project: libgstreamer
2 # Makefile to use with GNU Make
3 #
4 # Uses the Free Visual C++ 2003 compiler from Microsoft
5 # http://msdn.microsoft.com/visualc/vctoolkit2003/
6
7 # Compile with debug information ? IMPOSSIBLE with the free version of the compiler
8 #DEBUG = yes
9
10 # Link with MSVCRT as a DLL ? IMPOSSIBLE with the free version of the compiler
11 MSVCRT = yes
12
13 SRC_DIR=..\tools
14 GLIB_DIR=..\..\glib
15
16 #
17 # Don't change anything below this line.
18 #
19 CXX  = cl /Tp
20 CC   = cl /Tc
21 SRC  = $(SRC_DIR)\gst-register.obj
22 OBJ  = $(patsubst %.c,%.obj,$(SRC))
23 INCS = /I. /I.. /I../libs /I../../popt/include /I../../libiconv/include /I../../libxml2/include/libxml2 /I$(GLIB_DIR) /I$(GLIB_DIR)\glib /I$(GLIB_DIR)\gmodule /I$(GLIB_DIR)\build\win32
24 LDFLAGS = /NOLOGO /DLL /IMPLIB:gstreamer-0.8.lib /MAP:gst-register.map /LIBPATH:$(GLIB_DIR)/glib /LIBPATH:$(GLIB_DIR)/gobject /LIBPATH:$(GLIB_DIR)/gmodule /LIBPATH:$(GLIB_DIR)/gthread /LIBPATH:../../popt/lib /LIBPATH:../../libxml2/lib
25 OPTMIZ = /G6 /O2 /Oi /Wp64 /GL
26 CXXFLAGS = $(INCS) /DWIN32 /D_WINDOWS /DHAVE_CONFIG_H /D_USRDLL /DHAVE_WIN32 /nologo
27
28
29 HEADERS = $(SRC_DIR)\gstconfig.h $(SRC_DIR)\gstenumtypes.h $(SRC_DIR)\gstversion.h $(SRC_DIR)\gstenumtypes.c $(SRC_DIR)\gstmarshal.h
30
31 ifeq (yes,$(DEBUG))
32
33 ifeq (yes,$(MSVCRT))
34  CXXFLAGS += /MDd
35 else
36  CXXFLAGS += /MTd
37 endif
38 CXXFLAGS += /Zi /DDEBUG /D_DEBUG /RTC1
39 LDFLAGS += /DEBUG
40
41 else
42
43 ifeq (yes,$(MSVCRT))
44  CXXFLAGS += /MD
45 else
46  CXXFLAGS += /MT
47 endif
48 CXXFLAGS += /DGST_DISABLE_GST_DEBUG
49 LDFLAGS += /OPT:REF
50 endif
51
52 .PHONY: all all-before all-after clean clean-custom
53
54 %.obj : %.cpp
55         $(CXX) $< /c $(CXXFLAGS) /Fo$@
56
57 %.obj : %.c
58         $(CC) $< /c $(CXXFLAGS) /Fo$@
59
60 all: gst-register.exe
61
62 clean:
63         $(RM) gst-register.exe gst-register.obj
64
65 gst-register.exe:
66         $(CC) $(SRC_DIR)\gst-register.c $(CXXFLAGS) gstreamer-0.8.lib $(GLIB_DIR)/glib/glib-2.0.lib $(GLIB_DIR)/gobject/gobject-2.0.lib
67         
68
69 depend:
70         $(CXX) $(CXXFLAGS) -MM $(SRC) > .depend
71
72 #
73 # include dependency files if they exist
74 #
75 ifneq ($(wildcard .depend),)
76 include .depend
77 endif