summaryrefslogtreecommitdiff
path: root/camlibs/barbie
diff options
context:
space:
mode:
authorbvl <simpson2@users.sourceforge.net>2001-03-13 00:51:15 +0000
committerbvl <simpson2@users.sourceforge.net>2001-03-13 00:51:15 +0000
commit0b11738ebd0df774a8917b9152a649acefc86f19 (patch)
treec766643e23f6f93a7e05b439f161fe6dd331d66f /camlibs/barbie
parentbc4b605e1bb763bdf5245b4af032fe53342d6654 (diff)
downloadlibgphoto2-0b11738ebd0df774a8917b9152a649acefc86f19.tar.gz
bvl: Updated complete OS/2 Make system
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1731 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/barbie')
-rw-r--r--camlibs/barbie/makefile.os231
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)