diff options
Diffstat (limited to 'camlibs/barbie')
-rw-r--r-- | camlibs/barbie/makefile.os2 | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/camlibs/barbie/makefile.os2 b/camlibs/barbie/makefile.os2 index 93e34fc06..85f3200f6 100644 --- a/camlibs/barbie/makefile.os2 +++ b/camlibs/barbie/makefile.os2 @@ -1,32 +1,21 @@ -CCFLAGS=-O2 -c -I.. -I..\..\include -I..\..\libgphoto2_port\include -Zmtd -Zcrtdll -Zbin-files -D__ST_MT_ERRNO_ -I. -DOS2 -DHAVE_TERMIOS_H -DEBUG -CC=gcc +BASEPATH=..\.. all: start \ dll \ end -start: - @echo **** - @echo Entering: $(MAKEDIR) - @echo using CCFLAGS: $(CCFLAGS) - @echo **** +!include $(BASEPATH)\os2mak.inc -end: - @echo **** - @echo Done: $(MAKEDIR) - @echo **** +dll: $(CAMLIBS)\gpbarbie.dll -dll: ..\gpbarbie.dll +OBJS= barbie.o \ + library.o -library.o : library.c library.h - @$(CC) -o $@ library.c $(CCFLAGS) - -barbie.o : barbie.c - @$(CC) -o $@ barbie.c $(CCFLAGS) +.c.o: + @$(CC) -o $@ $< $(CCFLAGS) barbie.def: barbie.o - @copy barbie.df barbie.def - @emxexp $** >> barbie.def + @$(MAKEDEF) -..\gpbarbie.dll: barbie.o barbie.def library.o - @$(CC) -g -Wall -Zdll -Zcrtdll -o $@ $** -lwrap -lgcc -L..\..\LIB -llibgphoto2 -llibgphoto2_port -ldllib +$(CAMLIBS)\gpbarbie.dll: $(OBJS) barbie.def + @$(LINK) $(DLLLINKFLAGS) -o $@ $** $(LIBS) |