Mercurial > dwindows
annotate Makefile.in @ 373:d04b0699fc28
Fixes for background color drawing on GTK 2.x.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Apr 2003 19:53:29 +0000 |
parents | c7d5194bf4ad |
children | 838781d4f1dc |
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@ |
3 | 2 CC = @CC@ |
3 CCFLAGS = @CFLAGS@ -g -O2 -Wall -D__UNIX__ -DBUILD_DLL -DDW_RESOURCES | |
4 LFLAGS = @LIBS@ | |
41
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
5 INSTALL = @INSTALL@ |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
6 INCPATH = -I.. -I. -I$(srcdir) |
3 | 7 DESTDIR = ./lib/ |
8 MLFLAGS = -L$(DESTDIR) | |
9 TARGET = dw | |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
10 SRCS = $(srcdir)/gtk/dw.c |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
11 OBJECTS = dw.o |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
12 SRCS2 = $(srcdir)compat.c |
3 | 13 OBJECTS2= compat.o |
14 TARGET2 = dwcompat | |
147
b479002e013f
Upped the DW revision to 1.0, and merged with the latest code in the FX
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
80
diff
changeset
|
15 VER_MAJ = 1 |
b479002e013f
Upped the DW revision to 1.0, and merged with the latest code in the FX
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
80
diff
changeset
|
16 VER_MIN = 0 |
41
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
17 PREFIX = @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
|
18 SRCDIR=dwindows-$(VER_MAJ).$(VER_MIN) |
3 | 19 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
20 #.SUFFIXES: .c .h |
3 | 21 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
22 #.c.o: |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
23 # $(CC) -c $(CCFLAGS) $(INCPATH) -o $@ $< |
3 | 24 |
25 | |
26 # Link flags shared objects | |
27 SYSCONF_LFLAGS_SHOBJ = -shared | |
28 | |
29 # Linking shared libraries | |
30 # - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0 | |
31 # - Place target in $(DESTDIR) - which has a trailing / | |
32 # - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN) | |
33 # | |
34 SYSCONF_LINK_SHLIB = gcc | |
35 SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) | |
36 SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \ | |
37 -o $(SYSCONF_LINK_TARGET_SHARED) \ | |
38 $(OBJECTS) $(LFLAGS); \ | |
39 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | |
40 cd $(DESTDIR); \ | |
41 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \ | |
42 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ | |
43 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ) | |
44 | |
45 SYSCONF_LINK_TARGET_SHARED2 = lib$(TARGET2).so.$(VER_MAJ).$(VER_MIN) | |
46 SYSCONF_LINK_LIB_SHARED2 = $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET2).so.$(VER_MAJ) \ | |
47 -o $(SYSCONF_LINK_TARGET_SHARED2) \ | |
48 $(OBJECTS2) $(LFLAGS); \ | |
49 mv $(SYSCONF_LINK_TARGET_SHARED2) $(DESTDIR); \ | |
50 cd $(DESTDIR); \ | |
51 rm -f lib$(TARGET2).so lib$(TARGET2).so.$(VER_MAJ); \ | |
52 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so; \ | |
53 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so.$(VER_MAJ) | |
54 | |
55 | |
56 # Linking static libraries | |
57 # - Build the $(TARGET) library, eg. lib$(TARGET).a | |
58 # - Place target in $(DESTDIR) - which has a trailing / | |
59 # | |
60 SYSCONF_AR = ar cqs | |
61 SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | |
62 SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | |
63 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) | |
64 | |
65 | |
66 | |
67 ####### Build rules | |
68 | |
69 SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_SHARED) | |
70 SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_SHARED) | |
71 | |
72 SYSCONF_LINK_TARGET2 = $(SYSCONF_LINK_TARGET_SHARED2) | |
73 SYSCONF_LINK_LIB2 = $(SYSCONF_LINK_LIB_SHARED2) | |
74 | |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
75 all: $(SYSCONF_LINK_TARGET) $(SYSCONF_LINK_TARGET2) dwtest |
3 | 76 |
44
24afe3035088
Removed dependencies on install rule.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
41
diff
changeset
|
77 install: |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
78 $(INSTALL) $(srcdir)/dw.h $(PREFIX)/include; \ |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
79 $(INSTALL) $(srcdir)/compat.h $(PREFIX)/include; \ |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
78
diff
changeset
|
80 $(INSTALL) dw-config $(PREFIX)/bin; \ |
41
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
81 cd $(DESTDIR); \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
82 $(INSTALL) $(SYSCONF_LINK_TARGET) $(PREFIX)/lib; \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
83 $(INSTALL) $(SYSCONF_LINK_TARGET2) $(PREFIX)/lib; \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
84 cd $(PREFIX)/lib; \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
85 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
86 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
87 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
88 rm -f lib$(TARGET2).so lib$(TARGET2).so.$(VER_MAJ); \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
89 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so; \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
90 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so.$(VER_MAJ) |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
91 |
3 | 92 clean: |
93 rm -f *.so | |
94 rm -f *.o | |
95 rm -f *~ | |
96 rm -f *.a | |
97 rm -f gtk/*.o | |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
98 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
99 $(DESTDIR): |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
100 mkdir $(DESTDIR) |
3 | 101 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
102 $(SYSCONF_LINK_TARGET2): $(OBJECTS2) $(DESTDIR) |
3 | 103 $(SYSCONF_LINK_LIB2) |
104 | |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
105 $(SYSCONF_LINK_TARGET): $(OBJECTS) $(DESTDIR) |
3 | 106 $(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
|
107 |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
108 dw.o: $(srcdir)/gtk/dw.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
|
109 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/gtk/dw.c |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
110 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
111 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
|
112 $(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
|
113 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
114 ci.o: $(srcdir)/ci.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
|
115 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/ci.c |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
116 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
117 dwtest.o: $(srcdir)/dwtest.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
|
118 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/dwtest.c |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
119 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
120 ci: ci.o |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
121 $(CC) -o ci ci.o -L$(PREFIX)/lib -ldw -ldwcompat $(LFLAGS) |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
122 |
193
efd4703450fa
Build test application on Unix too... and also fixed GTK to allow
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
147
diff
changeset
|
123 dwtest: dwtest.o |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
124 $(CC) -o dwtest dwtest.o -L$(PREFIX)/lib -ldw -ldwcompat $(LFLAGS) |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
125 |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
126 zip: |
287
c7d5194bf4ad
Add license.txt to source distributions.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
261
diff
changeset
|
127 zip dwindows$(VER_MAJ)$(VER_MIN).zip $(srcdir)/license.txt $(srcdir)/makefile.* $(srcdir)/readme $(srcdir)/*.c $(srcdir)/*.h \ |
250
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
128 $(srcdir)/*.def $(srcdir)/install.sh $(srcdir)/*.in $(srcdir)/configure \ |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
129 $(srcdir)/ac*.m4 $(srcdir)/gtk/*.c $(srcdir)/win/*.c $(srcdir)/os2/*.c \ |
967b8cd9deb4
Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
193
diff
changeset
|
130 $(srcdir)/platform/*.h |
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
|
131 |
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
132 dist: |
287
c7d5194bf4ad
Add license.txt to source distributions.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
261
diff
changeset
|
133 (cd $(srcdir)/..;tar -cvf - $(SRCDIR)/license.txt $(SRCDIR)/makefile.* $(SRCDIR)/readme $(SRCDIR)/*.c $(SRCDIR)/*.h \ |
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 $(SRCDIR)/*.def $(SRCDIR)/install.sh $(SRCDIR)/*.in $(SRCDIR)/configure \ |
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
135 $(SRCDIR)/ac*.m4 $(SRCDIR)/gtk/*.c $(SRCDIR)/win/*.c $(SRCDIR)/os2/*.c \ |
3087f7da0515
Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents:
250
diff
changeset
|
136 $(SRCDIR)/platform/*.h | gzip > dwindows-$(VER_MAJ).$(VER_MIN).tar.gz ) |