mirror of
https://github.com/ksherlock/dot_clean.git
synced 2025-01-21 21:30:38 +00:00
39 lines
963 B
Makefile
39 lines
963 B
Makefile
LINK.o = $(LINK.cc)
|
|
CXXFLAGS += -std=c++11 -g -Wall
|
|
|
|
# static link if using mingw32 or mingw64 to make redistribution easier.
|
|
# also add mingw directory.
|
|
ifeq ($(MSYSTEM),MINGW32)
|
|
LDFLAGS += -static
|
|
endif
|
|
|
|
ifeq ($(MSYSTEM),MINGW64)
|
|
LDFLAGS += -static
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all
|
|
all : dot_clean applesingle appledouble
|
|
|
|
.PHONY: clean
|
|
clean :
|
|
$(RM) *.o dot_clean applesingle appledouble
|
|
|
|
|
|
dot_clean : dot_clean.o mapped_file.o finder_info_helper.o xattr.o
|
|
|
|
applesingle : applesingle.o mapped_file.o finder_info_helper.o xattr.o
|
|
appledouble : appledouble.o mapped_file.o finder_info_helper.o xattr.o
|
|
|
|
|
|
mapped_file.o : mapped_file.cpp mapped_file.h unique_resource.h
|
|
dot_clean.o : dot_clean.cpp mapped_file.h applefile.h defer.h
|
|
applesingle.o : applesingle.cpp mapped_file.h applefile.h defer.h
|
|
appledouble.o : appledouble.cpp mapped_file.h applefile.h defer.h
|
|
|
|
|
|
finder_info_helper.o: finder_info_helper.cpp finder_info_helper.h
|
|
|
|
xattr.o : xattr.c xattr.h
|