diff options
Diffstat (limited to 'camlibs/canon/makefile.os2')
-rw-r--r-- | camlibs/canon/makefile.os2 | 46 |
1 files changed, 15 insertions, 31 deletions
diff --git a/camlibs/canon/makefile.os2 b/camlibs/canon/makefile.os2 index 3e025bad1..be7d376ee 100644 --- a/camlibs/canon/makefile.os2 +++ b/camlibs/canon/makefile.os2 @@ -1,41 +1,25 @@ -CCFLAGS=-O2 -c -I.. -I..\..\include -I..\..\libgphoto2_port\include -Zmtd -Zcrtdll -Zbin-files -D__ST_MT_ERRNO_ -I. -DOS2 -DHAVE_TERMIOS_H -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 **** +OBJS=util.o \ + serial.o \ + canon.o \ + psa50.o \ + crc.o \ + canon.def \ -dll: ..\gpcanon.dll - -util.o : util.c - $(CC) -o $@ util.c $(CCFLAGS) - -canon.o : canon.c - $(CC) -o $@ canon.c $(CCFLAGS) - -crc.o : crc.c - $(CC) -o $@ crc.c $(CCFLAGS) - -psa50.o : psa50.c - $(CC) -o $@ psa50.c $(CCFLAGS) - -serial.o : serial.c - $(CC) -o $@ serial.c $(CCFLAGS) +.c.o : + @$(CC) -o $@ $< $(CCFLAGS) canon.def: canon.o - copy canon.df canon.def - emxexp $** >> canon.def + @$(MAKEDEF) + +dll: $(CAMLIBS)\gpcanon.dll -..\gpcanon.dll: util.o canon.def serial.o canon.o psa50.o crc.o - $(CC) -g -Wall -Zdll -Zcrtdll -o $@ $** -lwrap -lgcc -L..\..\LIB -llibgphoto2 -llibgphoto2_port -ldllib +$(CAMLIBS)\gpcanon.dll: $(OBJS) + @$(LINK) $(DLLLINKFLAGS) -o $@ $** $(LIBS) |