diff options
Diffstat (limited to 'formats/Makefile')
-rwxr-xr-x | formats/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/formats/Makefile b/formats/Makefile index 823515c24..31f973390 100755 --- a/formats/Makefile +++ b/formats/Makefile @@ -35,25 +35,29 @@ endif GSMLIB=../codecs/gsm/lib/libgsm.a +ifeq (${OSARCH},CYGWIN) +CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols +CYGSOLIB=-L.. -L. -lasterisk.dll +else CFLAGS+=-fPIC - +endif all: depend $(FORMAT_LIBS) clean: rm -f *.so *.o .depend %.so : %.o - $(CC) $(SOLINK) -o $@ $< + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} ifneq ($(wildcard .depend),) include .depend endif format_mp3.so : format_mp3.o - $(CC) $(SOLINK) -o $@ $< -lm + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lm format_ogg_vorbis.so : format_ogg_vorbis.o - $(CC) $(SOLINK) -o $@ $< -logg -lvorbis -lvorbisenc -lm + $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm install: all for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done |