Mercurial > dwindows
annotate Makefile.in @ 189:230686a7eba9
Fixed typos.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 05 Jan 2003 06:26:26 +0000 |
parents | b479002e013f |
children | efd4703450fa |
rev | line source |
---|---|
3 | 1 CC = @CC@ |
2 CCFLAGS = @CFLAGS@ -g -O2 -Wall -D__UNIX__ -DBUILD_DLL -DDW_RESOURCES | |
3 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
|
4 INSTALL = @INSTALL@ |
78
06fe66722371
Small makefile change to hopefully fix a build problem.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
75
diff
changeset
|
5 INCPATH = -I.. -I. |
3 | 6 DESTDIR = ./lib/ |
7 MLFLAGS = -L$(DESTDIR) | |
8 TARGET = dw | |
9 SRCS = gtk/dw.c | |
10 OBJECTS = gtk/dw.o | |
11 SRCS2 = compat.c | |
12 OBJECTS2= compat.o | |
13 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
|
14 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
|
15 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
|
16 PREFIX = @prefix@ |
3 | 17 |
18 .SUFFIXES: .c .h | |
19 | |
20 .c.o: | |
21 $(CC) -c $(CCFLAGS) $(INCPATH) -o $@ $< | |
22 | |
23 | |
24 # Link flags shared objects | |
25 SYSCONF_LFLAGS_SHOBJ = -shared | |
26 | |
27 # Linking shared libraries | |
28 # - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0 | |
29 # - Place target in $(DESTDIR) - which has a trailing / | |
30 # - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN) | |
31 # | |
32 SYSCONF_LINK_SHLIB = gcc | |
33 SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) | |
34 SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \ | |
35 -o $(SYSCONF_LINK_TARGET_SHARED) \ | |
36 $(OBJECTS) $(LFLAGS); \ | |
37 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | |
38 cd $(DESTDIR); \ | |
39 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \ | |
40 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ | |
41 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ) | |
42 | |
43 SYSCONF_LINK_TARGET_SHARED2 = lib$(TARGET2).so.$(VER_MAJ).$(VER_MIN) | |
44 SYSCONF_LINK_LIB_SHARED2 = $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET2).so.$(VER_MAJ) \ | |
45 -o $(SYSCONF_LINK_TARGET_SHARED2) \ | |
46 $(OBJECTS2) $(LFLAGS); \ | |
47 mv $(SYSCONF_LINK_TARGET_SHARED2) $(DESTDIR); \ | |
48 cd $(DESTDIR); \ | |
49 rm -f lib$(TARGET2).so lib$(TARGET2).so.$(VER_MAJ); \ | |
50 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so; \ | |
51 ln -s $(SYSCONF_LINK_TARGET_SHARED2) lib$(TARGET2).so.$(VER_MAJ) | |
52 | |
53 | |
54 # Linking static libraries | |
55 # - Build the $(TARGET) library, eg. lib$(TARGET).a | |
56 # - Place target in $(DESTDIR) - which has a trailing / | |
57 # | |
58 SYSCONF_AR = ar cqs | |
59 SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | |
60 SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | |
61 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) | |
62 | |
63 | |
64 | |
65 ####### Build rules | |
66 | |
67 SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_SHARED) | |
68 SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_SHARED) | |
69 | |
70 SYSCONF_LINK_TARGET2 = $(SYSCONF_LINK_TARGET_SHARED2) | |
71 SYSCONF_LINK_LIB2 = $(SYSCONF_LINK_LIB_SHARED2) | |
72 | |
73 all: $(SYSCONF_LINK_TARGET) $(SYSCONF_LINK_TARGET2) | |
74 | |
44
24afe3035088
Removed dependencies on install rule.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
41
diff
changeset
|
75 install: |
75
c629838d9805
Updated to latest DW, and updated the Makefile to install the header files
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
65
diff
changeset
|
76 $(INSTALL) dw.h $(PREFIX)/include; \ |
c629838d9805
Updated to latest DW, and updated the Makefile to install the header files
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
65
diff
changeset
|
77 $(INSTALL) compat.h $(PREFIX)/include; \ |
80
5e4730c42014
Added dw-config script to solve build problems.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
78
diff
changeset
|
78 $(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
|
79 cd $(DESTDIR); \ |
af0a78aa0d45
More updates, and a more comprehensive unix install scheme. Use target
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
3
diff
changeset
|
80 $(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
|
81 $(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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 |
3 | 90 clean: |
91 rm -f *.so | |
92 rm -f *.o | |
93 rm -f *~ | |
94 rm -f *.a | |
95 rm -f gtk/*.o | |
96 | |
97 $(SYSCONF_LINK_TARGET2): $(OBJECTS2) | |
98 $(SYSCONF_LINK_LIB2) | |
99 | |
100 $(SYSCONF_LINK_TARGET): $(OBJECTS) | |
101 $(SYSCONF_LINK_LIB) |