Added support for Ardour
[klaudia.git] / fst / Makefile
blobffb89cffb02da633a34f1fb51bc23682fec94893
1 ### Generated by Winemaker
4 SRCDIR = .
5 SUBDIRS =
6 DLLS =
7 EXES = fst
9 ### Common settings
11 PKG_CONFIG_MODULES := glib-2.0
12 PKG_CONFIG_MODULES += gtk+-2.0
13 PKG_CONFIG_MODULES += jack
15 CEXTRA := $(shell pkg-config --cflags $(PKG_CONFIG_MODULES)) -fPIC -m32 -g
16 CXXEXTRA = -mno-cygwin
17 RCEXTRA =
18 INCLUDE_PATH = -I. -I/usr/include -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -I/usr/local/include/wine -I/usr/local/include/wine/windows -I/usr/include/glib-2.0 -I/usr/include/glib-2.0/include -I/usr/include/gtk-2.0
19 DLL_PATH =
20 LIBRARY_PATH =-L/usr/lib32
21 LIBRARIES := $(shell pkg-config --libs $(PKG_CONFIG_MODULES)) -L/usr/X11R6/lib -lpthread -lrt -lX11 -m32
25 ### fst.exe sources and settings
27 fst_exe_MODULE = fst
28 fst_exe_C_SRCS = audiomaster.c \
29 fst.c \
30 fstinfofile.c \
31 gtk.c \
32 jfst.c \
33 fpsparser.c \
34 vstwin.c
35 fst_exe_CXX_SRCS =
36 fst_exe_RC_SRCS =
37 fst_exe_LDFLAGS = -mwindows
38 fst_exe_DLL_PATH =
39 fst_exe_DLLS =
40 fst_exe_LIBRARY_PATH =
41 fst_exe_LIBRARIES = uuid
43 fst_exe_OBJS = $(fst_exe_C_SRCS:.c=.o) \
44 $(fst_exe_CXX_SRCS:.cpp=.o) \
45 $(fst_exe_RC_SRCS:.rc=.res)
49 ### Global source lists
51 C_SRCS = $(fst_exe_C_SRCS)
52 CXX_SRCS = $(fst_exe_CXX_SRCS)
53 RC_SRCS = $(fst_exe_RC_SRCS)
56 ### Tools
58 CC = gcc
59 CXX = g++
60 LINK = winegcc
61 RC = wrc
62 WINEBUILD = winebuild
65 ### Generic targets
67 #all: hackheaders $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%)
68 all: $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%)
70 ### Build rules
73 .PHONY: all clean dummy
75 $(SUBDIRS): dummy
76 @cd $@ && $(MAKE)
78 # Implicit rules
80 .SUFFIXES: .cpp .rc .res
81 DEFINCL = $(INCLUDE_PATH) $(DEFINES) $(OPTIONS)
83 .c.o:
84 $(CC) -c $(CFLAGS) $(CEXTRA) $(DEFINCL) -o $@ $<
86 .cpp.o:
87 $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
89 .cxx.o:
90 $(CXX) -c $(CXXFLAGS) $(CXXEXTRA) $(DEFINCL) -o $@ $<
92 .rc.res:
93 $(RC) $(RCFLAGS) $(RCEXTRA) $(DEFINCL) -fo$@ $<
95 # Rules for cleaning
97 CLEAN_FILES = *.dbg.c y.tab.c y.tab.h lex.yy.c \
98 core *.orig *.rej \
99 \\\#*\\\# *~ *% .\\\#*
101 clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
102 $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o)
103 $(RM) $(DLLS:%=%.dbg.o) $(DLLS:%=%.so)
104 $(RM) $(EXES:%=%.dbg.o) $(EXES:%=%.so) $(EXES:%.exe=%)
105 $(RM) -rf ./vst
107 $(SUBDIRS:%=%/__clean__): dummy
108 cd `dirname $@` && $(MAKE) clean
110 $(EXTRASUBDIRS:%=%/__clean__): dummy
111 -cd `dirname $@` && $(RM) $(CLEAN_FILES)
113 ### Target specific build rules
114 DEFLIB = $(LIBRARY_PATH) $(LIBRARIES) $(DLL_PATH)
116 $(fst_exe_MODULE): $(fst_exe_OBJS)
117 $(LINK) $(fst_exe_LDFLAGS) -o $@ $(fst_exe_OBJS) $(fst_exe_LIBRARY_PATH) $(DEFLIB) $(fst_exe_DLLS:%=-l%) $(fst_exe_LIBRARIES:%=-l%)
120 distclean: clean
121 rm -f fst fst.exe fst.exe.so