annotate Makefile.in @ 449:787cc1e27897

Add support for directory browsing under Win32. DW_DIRECTORY_OPEN can be passed as a flag to dw_file_open() and under Windows a folder select dialog is displayed. No change for GTK; don't know about OS/2 or MAC.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 17 Jun 2003 01:45:58 +0000
parents e99cd6e45c0b
children f6de197ecbe9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
2 CC = @CC@
412
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
3 CCFLAGS = @CFLAGS@ -g -O2 -fPIC -Wall -D@DW_DEFINE@ -DBUILD_DLL -DDW_RESOURCES
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
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@
412
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
6 DW_SRC = @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
7 INCPATH = -I.. -I. -I$(srcdir)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
8 DESTDIR = ./lib/
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
9 MLFLAGS = -L$(DESTDIR)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
10 TARGET = dw
412
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
11 SRCS = $(srcdir)/$(DW_SRC)/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
12 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
13 SRCS2 = $(srcdir)compat.c
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
14 OBJECTS2= compat.o
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
15 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
16 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
17 VER_MIN = 0
434
062ed9ddf3af Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 432
diff changeset
18 SOSUFFIX= @SOSUFFIX@
41
af0a78aa0d45 More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
19 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
20 SRCDIR=dwindows-$(VER_MAJ).$(VER_MIN)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
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 #.SUFFIXES: .c .h
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
23
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
24 #.c.o:
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
25 # $(CC) -c $(CCFLAGS) $(INCPATH) -o $@ $<
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
26
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
27
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
28 # Link flags shared objects
432
5f9f185e4aa0 Wrong predicate on SHAREDFLAGS.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 430
diff changeset
29 SYSCONF_LFLAGS_SHOBJ = @SHAREDFLAG@
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
30
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
31 # Linking shared libraries
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
32 # - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
33 # - Place target in $(DESTDIR) - which has a trailing /
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
34 # - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
35 #
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
36 SYSCONF_LINK_SHLIB = gcc
434
062ed9ddf3af Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 432
diff changeset
37 SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).$(SOSUFFIX).$(VER_MAJ).$(VER_MIN)
430
636a8a19f6c8 Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 428
diff changeset
38 SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(SYSCONF_LFLAGS_SHOBJ) \
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
39 -o $(SYSCONF_LINK_TARGET_SHARED) \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
40 $(OBJECTS) $(LFLAGS); \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
41 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
42 cd $(DESTDIR); \
434
062ed9ddf3af Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 432
diff changeset
43 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
44 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
45 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX).$(VER_MAJ)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
46
434
062ed9ddf3af Shared library updates for MacOS X. Suffix should be dylib, and linker
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 432
diff changeset
47 SYSCONF_LINK_TARGET_SHARED2 = lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ).$(VER_MIN)
430
636a8a19f6c8 Condifure and Makefile changes for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 428
diff changeset
48 SYSCONF_LINK_LIB_SHARED2 = $(SYSCONF_LINK_SHLIB) $(SYSCONF_LFLAGS_SHOBJ) \
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
49 -o $(SYSCONF_LINK_TARGET_SHARED2) \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
50 $(OBJECTS2) $(LFLAGS); \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
51 mv $(SYSCONF_LINK_TARGET_SHARED2) $(DESTDIR); \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
52 cd $(DESTDIR); \
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
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
56
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
57
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
58 # Linking static libraries
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
59 # - Build the $(TARGET) library, eg. lib$(TARGET).a
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
60 # - Place target in $(DESTDIR) - which has a trailing /
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
61 #
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
62 SYSCONF_AR = ar cqs
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
63 SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
64 SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
65 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
66
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
67
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
68
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
69 ####### Build rules
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
70
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
71 SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_SHARED)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
72 SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_SHARED)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
73
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
74 SYSCONF_LINK_TARGET2 = $(SYSCONF_LINK_TARGET_SHARED2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
75 SYSCONF_LINK_LIB2 = $(SYSCONF_LINK_LIB_SHARED2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
76
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
77 all: $(SYSCONF_LINK_TARGET) $(SYSCONF_LINK_TARGET2) dwtest
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
78
44
24afe3035088 Removed dependencies on install rule.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 41
diff changeset
79 install:
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
80 $(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
81 $(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
82 $(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
83 cd $(DESTDIR); \
af0a78aa0d45 More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
84 $(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
85 $(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
86 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
87 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \
437
903fb3085d42 More MacOS fixes, make install now works properly. Made special test
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 434
diff changeset
88 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX); \
903fb3085d42 More MacOS fixes, make install now works properly. Made special test
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 434
diff changeset
89 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).$(SOSUFFIX).$(VER_MAJ); \
903fb3085d42 More MacOS fixes, make install now works properly. Made special test
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 434
diff changeset
90 rm -f lib$(TARGET2).$(SOSUFFIX) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ); \
903fb3085d42 More MacOS fixes, make install now works properly. Made special test
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 434
diff changeset
91 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX); \
903fb3085d42 More MacOS fixes, make install now works properly. Made special test
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 434
diff changeset
92 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).$(SOSUFFIX).$(VER_MAJ)
41
af0a78aa0d45 More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 3
diff changeset
93
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
94 clean:
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
95 rm -f *.so
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
96 rm -f *.o
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
97 rm -f *~
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
98 rm -f *.a
412
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
99 rm -f $(DW_SRC)/*.o
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
100
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
101 $(DESTDIR):
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
102 mkdir $(DESTDIR)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
103
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
104 $(SYSCONF_LINK_TARGET2): $(OBJECTS2) $(DESTDIR)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
105 $(SYSCONF_LINK_LIB2)
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
106
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
107 $(SYSCONF_LINK_TARGET): $(OBJECTS) $(DESTDIR)
3
ktk@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
108 $(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
109
412
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
110 dw.o: $(srcdir)/$(DW_SRC)/dw.c
a8015e02b590 Initial configure support for MacOS X.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 396
diff changeset
111 $(CC) -c $(INCPATH) $(CCFLAGS) -o $@ $(srcdir)/$(DW_SRC)/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
112
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
113 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
114 $(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
115
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
116 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
117 $(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
118
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
119 dwtest.o: $(srcdir)/dwtest.c
443
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 437
diff changeset
120 $(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
121
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
122 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
123 $(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
124
193
efd4703450fa Build test application on Unix too... and also fixed GTK to allow
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 147
diff changeset
125 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
126 $(CC) -o dwtest dwtest.o -L$(PREFIX)/lib -ldw -ldwcompat $(LFLAGS)
443
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 437
diff changeset
127 chmod +x mac/finishup.sh
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 437
diff changeset
128 mac/finishup.sh
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
129
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
130 zip:
396
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
131 zip dwindows$(VER_MAJ)$(VER_MIN).zip $(srcdir)/license.txt $(srcdir)/makefile.* $(srcdir)/readme $(srcdir)/*.c $(srcdir)/dw.h $(srcdir)/compat.h \
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
132 $(srcdir)/*.def $(srcdir)/install.sh $(srcdir)/*.in $(srcdir)/configure \
396
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
133 $(srcdir)/ac*.m4 \
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
134 $(srcdir)/gtk/*.c $(srcdir)/win/*.c $(srcdir)/os2/*.c \
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
135 $(srcdir)/gtk/*.xpm $(srcdir)/win/*.ico $(srcdir)/os2/*.ico \
250
967b8cd9deb4 Add srcdir usage to allow building to be done from anywhere.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 193
diff changeset
136 $(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
137
3087f7da0515 Change the order of header file includes; ensure local files are found first.
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 250
diff changeset
138 dist:
396
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
139 (cd $(srcdir)/..;tar -cvf - $(SRCDIR)/license.txt $(SRCDIR)/makefile.* $(SRCDIR)/readme $(SRCDIR)/*.c $(SRCDIR)/dw.h $(SRCDIR)/compat.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
140 $(SRCDIR)/*.def $(SRCDIR)/install.sh $(SRCDIR)/*.in $(SRCDIR)/configure \
396
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
141 $(SRCDIR)/ac*.m4 \
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
142 $(SRCDIR)/gtk/*.c $(SRCDIR)/win/*.c $(SRCDIR)/os2/*.c \
278707e0532c Add messagebox xpms in distro
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 382
diff changeset
143 $(SRCDIR)/gtk/*.xpm $(SRCDIR)/win/*.ico $(SRCDIR)/os2/*.ico \
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
144 $(SRCDIR)/platform/*.h | gzip > dwindows-$(VER_MAJ).$(VER_MIN).tar.gz )