Subversion Repositories Kolibri OS

Rev

Rev 4362 | Rev 4866 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
 
2
3
 
4
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
5
6
 
7
8
 
9
10
 
11
12
 
13
14
 
15
16
 
17
18
 
19
20
 
21
22
 
23
24
 
25
26
 
4367 Serge 27
CFLAGS+=-march=pentium-mmx
28
endif
29
4349 Serge 30
 
31
 
32
	  pngread.c pngrio.c pngrtran.c pngrutil.c	\
33
	  pngset.c pngtrans.c pngwio.c pngwrite.c 	\
34
	  pngwtran.c pngwutil.c
35
36
 
37
 
38
39
 
40
 
41
42
 
43
 
44
45
 
4367 Serge 46
4349 Serge 47
 
48
	ar cvrs $(LIBRARY).a $(OBJECTS)
49
	mv -f $(LIBRARY).a ../../lib
4362 Serge 50
4349 Serge 51
 
52
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@  libpng16.def $(OBJECTS) $(LIBS)
53
	$(STRIP) $@
54
	sed -f ../newlib/cmd1.sed libpng16.def > mem
55
	sed -f ../newlib/cmd2.sed mem >libpng.inc
56
	mv -f $@ ../../bin
57
	mv -f $(LIBRARY).dll.a ../../lib
58
59
 
60
 
61
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
62
63
 
64
	-rm -f *.o
65
66
 
67