bluecore/physfs/Makefile

30 lines
563 B
Makefile
Raw Normal View History

2008-01-16 11:45:17 +00:00
include ../Makefile.common
CFLAGS += -I. -I../zlib -DPHYSFS_SUPPORTS_ZIP
ifeq ($(OS),LINUX)
OBJ = platform/posix.o platform/unix.o
else
OBJ = platform/windows.o
endif
OBJ += $(patsubst %.c,%.o,$(wildcard *.c)) archivers/dir.o archivers/zip.o
LIBNAME = libphysfs.a
all: $(LIBNAME)
$(LIBNAME): $(OBJ)
@echo Creating archieve $@
@ar -crsu $@ $(OBJ)
@echo
clean:
-@$(RM) *.o
-@$(RM) *.d
-@$(RM) archivers$(SLASH)*.o
-@$(RM) archivers$(SLASH)*.d
-@$(RM) platform$(SLASH)*.o
-@$(RM) platform$(SLASH)*.d
-@$(RM) $(LIBNAME)