1 .PHONY: all objdir cleantarget clean realclean distclean
11 TARGET_TYPE = staticlib
35 include $(_CF_DIR)crossplatform.mk
36 include $(_CF_DIR)default.cf
38 # POST-INCLUDES VARIABLES
40 OBJ = obj/$(CONFIG).$(PLATFORM)$(COMPILER_SUFFIX)/
44 TARGET = obj/$(CONFIG).$(PLATFORM)$(COMPILER_SUFFIX)/$(LP)png$(A)
84 LIBS += $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
87 $(if $(DEBUG), -g, -O2 -ffast-math) $(FPIC) -w \
95 CECFLAGS += -cpp $(_CPP)
97 ifndef STATIC_LIBRARY_TARGET
103 all: objdir $(TARGET)
106 $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
108 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
109 $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
118 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./png.c -o $(OBJ)png.o
120 $(OBJ)pngerror.o: ./pngerror.c
121 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngerror.c -o $(OBJ)pngerror.o
123 $(OBJ)pngget.o: ./pngget.c
124 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngget.c -o $(OBJ)pngget.o
126 $(OBJ)pngmem.o: ./pngmem.c
127 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngmem.c -o $(OBJ)pngmem.o
129 $(OBJ)pngpread.o: ./pngpread.c
130 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngpread.c -o $(OBJ)pngpread.o
132 $(OBJ)pngread.o: ./pngread.c
133 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngread.c -o $(OBJ)pngread.o
135 $(OBJ)pngrio.o: ./pngrio.c
136 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngrio.c -o $(OBJ)pngrio.o
138 $(OBJ)pngrtran.o: ./pngrtran.c
139 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngrtran.c -o $(OBJ)pngrtran.o
141 $(OBJ)pngrutil.o: ./pngrutil.c
142 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngrutil.c -o $(OBJ)pngrutil.o
144 $(OBJ)pngset.o: ./pngset.c
145 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngset.c -o $(OBJ)pngset.o
147 $(OBJ)pngtrans.o: ./pngtrans.c
148 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngtrans.c -o $(OBJ)pngtrans.o
150 $(OBJ)pngwio.o: ./pngwio.c
151 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngwio.c -o $(OBJ)pngwio.o
153 $(OBJ)pngwrite.o: ./pngwrite.c
154 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngwrite.c -o $(OBJ)pngwrite.o
156 $(OBJ)pngwtran.o: ./pngwtran.c
157 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngwtran.c -o $(OBJ)pngwtran.o
159 $(OBJ)pngwutil.o: ./pngwutil.c
160 $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c ./pngwutil.c -o $(OBJ)pngwutil.o
163 $(call rmq,$(TARGET))
166 $(call rmq,$(_OBJECTS))
168 realclean: cleantarget
171 distclean: cleantarget