Mercurial > dwindows
annotate Makefile.in @ 662:d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
Mac GTK version should still work. Carbon was unfinished, Cocoa version is more complete.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 25 Feb 2011 15:25:54 +0000 |
parents | 5ea195fd28da |
children | 39d848c20c05 |
rev | line source |
---|---|
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
1 srcdir=@srcdir@ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
2 mandir=@mandir@ |
3 | 3 CC = @CC@ |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
4 MLFLAGS = -L. |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
5 CCFLAGS = @CFLAGS@ -g -O2 @ARCH@ -fPIC -Wall -D@DW_DEFINE@ -DBUILD_DLL -DDW_RESOURCES |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
6 LFLAGS = @LIBS@ @ARCH@ |
41
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
7 INSTALL = @INSTALL@ |
412
a8015e02b590
Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
396
diff
changeset
|
8 DW_SRC = @DW_SRC@ |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
9 DW_DIR = @DW_DIR@ |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
10 INCPATH = -I.. -I. -I$(srcdir) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
11 TARGET = @TARGET@ |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
12 SRCS = $(srcdir)/$(DW_DIR)/$(DW_SRC) $(DW_DIR)rel2abs.c |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
629
diff
changeset
|
13 BROWSER_OBJECT=@BROWSER_OBJECT@ |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
14 COMPAT_OBJECT=@COMPAT_OBJECT@ |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
15 INSTALL_COMPAT=@INSTALL_COMPAT@ |
636
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
629
diff
changeset
|
16 OBJECTS = dw.o rel2abs.o $(BROWSER_OBJECT) |
f6f887d2c5aa
Add _dw_log() internal logging function
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
629
diff
changeset
|
17 SRCS2 = $(srcdir)compat.c |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
18 OBJECTS2= $(COMPAT_OBJECT) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
19 TARGET2= @TARGET2@ |
625
21c321ec0810
Make version dependent on configure
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
622
diff
changeset
|
20 VER_MAJ = @DW_MAJOR_VERSION@ |
21c321ec0810
Make version dependent on configure
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
622
diff
changeset
|
21 VER_MIN = @DW_MINOR_VERSION@ |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
22 SOSUFFIX= @SOSUFFIX@ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
23 SONAME= @SONAME@ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
24 prefix = $(DESTDIR)@prefix@ |
261
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
25 SRCDIR=dwindows-$(VER_MAJ).$(VER_MIN) |
3 | 26 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
27 #.SUFFIXES: .c .h |
3 | 28 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
29 #.c.o: |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
30 # $(CC) -c $(CCFLAGS) $(INCPATH) -o $@ $< |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
31 |
3 | 32 |
33 # Link flags shared objects | |
432
5f9f185e4aa0
Wrong predicate on SHAREDFLAGS.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
430
diff
changeset
|
34 SYSCONF_LFLAGS_SHOBJ = @SHAREDFLAG@ |
3 | 35 |
36 # Linking shared libraries | |
37 # - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0 | |
38 # - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN) | |
39 # | |
40 SYSCONF_LINK_SHLIB = gcc | |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
41 SYSCONF_LINK_TARGET_SHARED = @SYSCONF_LINK_TARGET_SHARED@ |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
428
diff
changeset
|
42 SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(SYSCONF_LFLAGS_SHOBJ) \ |
3 | 43 -o $(SYSCONF_LINK_TARGET_SHARED) \ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
44 $(OBJECTS) $(LFLAGS) $(SONAME); \ |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
45 rm -f lib$(TARGET).$(SOSUFFIX) lib$(TARGET).$(SOSUFFIX).$(VER_MAJ); \ |
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
46 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX); \ |
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
47 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX).$(VER_MAJ) |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
48 |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
49 SYSCONF_LINK_TARGET_SHARED2 = @SYSCONF_LINK_TARGET_SHARED2@ |
430
636a8a19f6c8
Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
428
diff
changeset
|
50 SYSCONF_LINK_LIB_SHARED2 = $(SYSCONF_LINK_SHLIB) $(SYSCONF_LFLAGS_SHOBJ) \ |
3 | 51 -o $(SYSCONF_LINK_TARGET_SHARED2) \ |
52 $(OBJECTS2) $(LFLAGS); \ | |
434
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
53 rm -f lib$(TARGET2).$(SOSUFFIX) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ); \ |
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
54 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX); \ |
062ed9ddf3af
Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
432
diff
changeset
|
55 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ) |
3 | 56 |
57 | |
58 # Linking static libraries | |
59 # - Build the $(TARGET) library, eg. lib$(TARGET).a | |
60 # | |
61 SYSCONF_AR = ar cqs | |
62 SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
63 SYSCONF_LINK_LIB_STATIC = rm -f $(SYSCONF_LINK_TARGET_STATIC) ; \ |
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
64 $(SYSCONF_AR) $(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) |
3 | 65 |
66 | |
67 | |
68 ####### Build rules | |
69 | |
70 SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_SHARED) | |
71 SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_SHARED) | |
72 | |
73 SYSCONF_LINK_TARGET2 = $(SYSCONF_LINK_TARGET_SHARED2) | |
74 SYSCONF_LINK_LIB2 = $(SYSCONF_LINK_LIB_SHARED2) | |
75 | |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
76 all: $(SYSCONF_LINK_TARGET) $(SYSCONF_LINK_TARGET2) dwtest |
3 | 77 |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
78 install: installbase $(INSTALL_COMPAT) |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
79 |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
80 installbase: $(SYSCONF_LINK_TARGET) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
81 $(INSTALL) -d $(prefix)/include; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
82 $(INSTALL) -d $(prefix)/lib; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
83 $(INSTALL) -d $(prefix)/bin; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
84 $(INSTALL) -d $(prefix)/share/man/man1; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
85 $(INSTALL) $(srcdir)/dw.h $(prefix)/include; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
86 $(INSTALL) dwindows-config $(prefix)/bin; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
87 $(INSTALL) dwindows-config.1 $(prefix)/share/man/man1; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
88 cd $(prefix)/share/man/man1; gzip -f -9 dwindows-config.1 |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
89 $(INSTALL) $(SYSCONF_LINK_TARGET) $(prefix)/lib; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
90 cd $(prefix)/lib; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
91 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
92 ln -sf $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX); \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
93 ln -sf $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX).$(VER_MAJ) |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
94 |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
95 installcompat: $(SYSCONF_LINK_TARGET2) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
96 $(INSTALL) -d $(prefix)/lib; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
97 $(INSTALL) $(SYSCONF_LINK_TARGET2) $(prefix)/lib; \ |
646
5ea195fd28da
Installing with compat included does not install the header.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
643
diff
changeset
|
98 $(INSTALL) $(srcdir)/compat.h $(prefix)/include; \ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
99 cd $(prefix)/lib; \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
100 rm -f lib$(TARGET2).$(SOSUFFIX) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ); \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
101 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX); \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
102 ln -sf $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
103 |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
104 deb: dist |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
105 -rm -fr tmp |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
106 -mkdir tmp |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
107 (cd tmp;tar zxvf ../../$(srcdir)/$(SRCDIR).tar.gz;cd $(SRCDIR);dpkg-buildpackage -rfakeroot;cd ..;ls -l) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
108 |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
109 distclean: clean |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
110 rm -f config.status |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
111 |
3 | 112 clean: |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
113 rm -f *.$(SOSUFFIX) |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
114 rm -f *.$(SOSUFFIX).* |
3 | 115 rm -f *.o |
116 rm -f *~ | |
117 rm -f *.a | |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
118 rm -f $(DW_DIR)/*.o |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
119 rm -f dwtest |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
120 |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
121 $(SYSCONF_LINK_TARGET2): $(OBJECTS2) |
3 | 122 $(SYSCONF_LINK_LIB2) |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
123 |
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
124 $(SYSCONF_LINK_TARGET): $(OBJECTS) |
3 | 125 $(SYSCONF_LINK_LIB) |
193
efd4703450fa
Build test application on Unix too... and also fixed GTK to allow
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
147
diff
changeset
|
126 |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
127 dw.o: $(srcdir)/$(DW_DIR)/$(DW_SRC) |
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
128 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/$(DW_DIR)/$(DW_SRC) |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
129 |
662
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
130 browser.o: $(srcdir)/$(DW_DIR)/browser.cpp |
d7badd5606ca
Removed the Carbon source file, and changes to configure to build the Cocoa version.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
646
diff
changeset
|
131 $(CXX) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/$(DW_DIR)/browser.cpp |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
609
diff
changeset
|
132 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
133 compat.o: $(srcdir)/compat.c |
261
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
134 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/compat.c |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
135 |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
136 rel2abs.o: $(srcdir)/gtk/rel2abs.c |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
137 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/gtk/rel2abs.c |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
138 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
139 dwtest.o: $(srcdir)/dwtest.c |
622
fb59f9eeeecd
SUpport for embedded mozilla/firefox widget
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
609
diff
changeset
|
140 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/dwtest.c |
601
fe6490a13ed2
Simplify and link dwtest with locally built shared libraries
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
566
diff
changeset
|
141 |
193
efd4703450fa
Build test application on Unix too... and also fixed GTK to allow
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
147
diff
changeset
|
142 dwtest: dwtest.o |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
143 $(CC) -o dwtest dwtest.o $(MLFLAGS) -l$(TARGET) $(LFLAGS) |
639
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
144 -chmod +x $(srcdir)/mac/finishup.sh |
06be879f5137
Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
636
diff
changeset
|
145 -$(srcdir)/mac/finishup.sh $(srcdir) |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
146 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
147 zip: |
396
278707e0532c
Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
382
diff
changeset
|
148 zip dwindows$(VER_MAJ)$(VER_MIN).zip $(srcdir)/license.txt $(srcdir)/makefile.* $(srcdir)/readme $(srcdir)/*.c $(srcdir)/dw.h $(srcdir)/compat.h \ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
149 $(srcdir)/*.def $(srcdir)/install.sh $(srcdir)/*.in $(srcdir)/configure \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
150 $(srcdir)/ac*.m4 $(srcdir)/dwindows-config.1 \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
151 $(srcdir)/gtk/*.c $(srcdir)/gtk/*.cpp $(srcdir)/win/*.c $(srcdir)/os2/*.c $(srcdir)/win/*.txt $(srcdir)/os2/*.txt \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
152 $(srcdir)/gtk/*.xpm $(srcdir)/win/*.ico $(srcdir)/os2/*.ico \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
153 $(srcdir)/mac/Info.plist $(srcdir)/mac/PkgInfo $(srcdir)/mac/*.c $(srcdir)/mac/dwtest.r $(srcdir)/mac/finishup.sh \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
154 $(srcdir)/platform/*.h \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
155 $(srcdir)/debian/control $(srcdir)/debian/rules $(srcdir)/debian/copyright $(srcdir)/debian/compat $(srcdir)/debian/changelog |
261
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
156 |
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
157 dist: |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
158 (cd $(srcdir)/..;ln -sf dwindows $(SRCDIR)) |
396
278707e0532c
Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
382
diff
changeset
|
159 (cd $(srcdir)/..;tar -cvf - $(SRCDIR)/license.txt $(SRCDIR)/makefile.* $(SRCDIR)/readme $(SRCDIR)/*.c $(SRCDIR)/dw.h $(SRCDIR)/compat.h \ |
643
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
160 $(SRCDIR)/*.def $(SRCDIR)/install.sh $(SRCDIR)/*.in $(SRCDIR)/configure \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
161 $(SRCDIR)/ac*.m4 $(SRCDIR)/dwindows-config.1 \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
162 $(SRCDIR)/gtk/*.c $(SRCDIR)/gtk/*.cpp $(SRCDIR)/win/*.c $(SRCDIR)/os2/*.c $(SRCDIR)/win/*.txt $(SRCDIR)/os2/*.txt \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
163 $(SRCDIR)/gtk/*.xpm $(SRCDIR)/win/*.ico $(SRCDIR)/os2/*.ico \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
164 $(SRCDIR)/mac/Info.plist $(SRCDIR)/mac/PkgInfo $(SRCDIR)/mac/*.c $(SRCDIR)/mac/dwtest.r $(SRCDIR)/mac/finishup.sh \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
165 $(SRCDIR)/debian/control $(SRCDIR)/debian/rules $(SRCDIR)/debian/copyright $(SRCDIR)/debian/compat $(SRCDIR)/debian/changelog \ |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
166 $(SRCDIR)/platform/*.h | gzip > $(SRCDIR).tar.gz ) |
9ab89d89e6b4
Add dw_listview_insert()
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
641
diff
changeset
|
167 (cd $(srcdir)/..;rm -f $(SRCDIR)) |