]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | # Makefile for libpng |
2 | # TurboC++ 3.0 (Note: All modules are compiled in C mode) | |
3 | ||
4 | # To use, do "make -fmakefile.tc3" | |
5 | ||
6 | # ------------- Turbo C++ 3.0 ------------- | |
7 | MODEL=-ml | |
8 | CFLAGS=-O2 -Z $(MODEL) -I..\zlib | |
9 | CC=tcc | |
10 | LD=tcc | |
11 | LIB=tlib | |
12 | LDFLAGS=$(MODEL) -L..\zlib | |
13 | O=.obj | |
14 | E=.exe | |
15 | ||
16 | # variables | |
17 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | |
18 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | |
19 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | |
20 | OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O) | |
21 | OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O) | |
22 | OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O) | |
23 | ||
24 | all: libpng.lib pngtest.exe | |
25 | ||
26 | png$(O): png.h pngconf.h | |
27 | $(CC) -c $(CFLAGS) $*.c | |
28 | ||
29 | pngset$(O): png.h pngconf.h | |
30 | $(CC) -c $(CFLAGS) $*.c | |
31 | ||
32 | pngget$(O): png.h pngconf.h | |
33 | $(CC) -c $(CFLAGS) $*.c | |
34 | ||
35 | pngread$(O): png.h pngconf.h | |
36 | $(CC) -c $(CFLAGS) $*.c | |
37 | ||
38 | pngpread$(O): png.h pngconf.h | |
39 | $(CC) -c $(CFLAGS) $*.c | |
40 | ||
41 | pngrtran$(O): png.h pngconf.h | |
42 | $(CC) -c $(CFLAGS) $*.c | |
43 | ||
44 | pngrutil$(O): png.h pngconf.h | |
45 | $(CC) -c $(CFLAGS) $*.c | |
46 | ||
47 | pngerror$(O): png.h pngconf.h | |
48 | $(CC) -c $(CFLAGS) $*.c | |
49 | ||
50 | pngmem$(O): png.h pngconf.h | |
51 | $(CC) -c $(CFLAGS) $*.c | |
52 | ||
53 | pngrio$(O): png.h pngconf.h | |
54 | $(CC) -c $(CFLAGS) $*.c | |
55 | ||
56 | pngwio$(O): png.h pngconf.h | |
57 | $(CC) -c $(CFLAGS) $*.c | |
58 | ||
59 | pngtest$(O): png.h pngconf.h | |
60 | $(CC) -c $(CFLAGS) $*.c | |
61 | ||
62 | pngtrans$(O): png.h pngconf.h | |
63 | $(CC) -c $(CFLAGS) $*.c | |
64 | ||
65 | pngwrite$(O): png.h pngconf.h | |
66 | $(CC) -c $(CFLAGS) $*.c | |
67 | ||
68 | pngwtran$(O): png.h pngconf.h | |
69 | $(CC) -c $(CFLAGS) $*.c | |
70 | ||
71 | pngwutil$(O): png.h pngconf.h | |
72 | $(CC) -c $(CFLAGS) $*.c | |
73 | ||
74 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) | |
75 | $(LIB) libpng +$(OBJSL1) | |
76 | $(LIB) libpng +$(OBJSL2) | |
77 | $(LIB) libpng +$(OBJSL3) | |
78 | ||
79 | pngtest$(E): pngtest$(O) libpng.lib | |
80 | $(CC) $(LDFLAGS) pngtest.obj libpng.lib zlib.lib | |
81 | ||
82 | # End of makefile for libpng |