| 1 | BOCA_PATH = ../../../.. |
| 2 | |
| 3 | include $(dir $(firstword $(MAKEFILE_LIST)))/$(BOCA_PATH)/Makefile-options |
| 4 | |
| 5 | OBJECTS = UriCommon.o UriCompare.o UriEscape.o UriFile.o UriIp4.o UriIp4Base.o UriMemory.o UriNormalize.o UriNormalizeBase.o UriParse.o UriParseBase.o UriQuery.o UriRecompose.o UriResolve.o UriShorten.o |
| 6 | TARGET = liburiparser.a |
| 7 | |
| 8 | CCOPTS = -I"$(SRCDIR)"/.. |
| 9 | AR = ar |
| 10 | |
| 11 | ifneq ($(BUILD_WIN32),True) |
| 12 | CCOPTS += -fPIC |
| 13 | endif |
| 14 | |
| 15 | all: $(TARGET) |
| 16 | |
| 17 | $(TARGET): $(OBJECTS) |
| 18 | $(AR) rs $@ $(OBJECTS) |
| 19 | |
| 20 | clean: |
| 21 | rm -f $(TARGET) $(OBJECTS) |
| 22 | |
| 23 | .c.o: |
| 24 | $(CC) $(CCOPTS) $(CFLAGS) -c $< -o $@ |