Rev 4367 | Rev 4866 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4367 | Rev 4819 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | CC = gcc |
3 | CC = gcc |
4 | CFLAGS = -c -O2 -ffast-math -Wall -Winline -Wno-attributes -fomit-frame-pointer |
4 | CFLAGS = -c -O2 -ffast-math -Wall -Winline -Wno-attributes -fomit-frame-pointer |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | LD = ld |
6 | LD = ld |
Line 7... | Line 7... | ||
7 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --version-script cairo.ver --output-def $(LIBRARY).orig.def --out-implib $(LIBRARY).dll.a |
7 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --version-script cairo.ver --output-def $(LIBRARY).orig.def --out-implib lib$(LIBRARY).dll.a |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 147... | Line 147... | ||
147 | 147 | ||
Line 148... | Line 148... | ||
148 | # targets |
148 | # targets |
Line 149... | Line 149... | ||
149 | 149 | ||
Line 150... | Line 150... | ||
150 | 150 | ||
Line 151... | Line 151... | ||
151 | all: $(LIBRARY).a $(LIBRARY).dll |
151 | all: lib$(LIBRARY).a $(LIBRARY).dll |
152 | 152 | ||
153 | ebox: $(LIBRARY).a $(LIBRARY).dll |
153 | ebox: lib$(LIBRARY).a $(LIBRARY).dll |
Line 154... | Line 154... | ||
154 | 154 | ||
155 | $(LIBRARY).a: $(OBJECTS) Makefile |
155 | lib$(LIBRARY).a: $(OBJECTS) Makefile |
156 | ar cvrs $(LIBRARY).a $(OBJECTS) |
156 | ar cvrs lib$(LIBRARY).a $(OBJECTS) |
157 | mv -f $(LIBRARY).a ../../lib |
157 | mv -f lib$(LIBRARY).a ../../lib |
158 | 158 | ||
159 | 159 | ||
160 | $(LIBRARY).dll: $(OBJECTS) Makefile |
160 | $(LIBRARY).dll: $(OBJECTS) Makefile |
161 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) |
161 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) |
Line 162... | Line 162... | ||
162 | $(STRIP) $@ |
162 | $(STRIP) $@ |
163 | sed -e "s/ @[^ ]*//" $(LIBRARY).orig.def > $(LIBRARY).def |
163 | sed -e "s/ @[^ ]*//" $(LIBRARY).orig.def > $(LIBRARY).def |
Line 164... | Line 164... | ||
164 | sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem |
164 | sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem |