dot_clean/Makefile

43 lines
946 B
Makefile
Raw Normal View History

2016-08-04 00:17:54 +00:00
LINK.o = $(LINK.cc)
2016-08-05 00:28:49 +00:00
CXXFLAGS += -std=c++11 -g -Wall
2016-08-04 00:17:54 +00:00
CPPFLAGS += -I afp/include
2017-06-13 18:25:16 +00:00
# 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
2017-03-04 19:14:27 +00:00
.PHONY: all
all : dot_clean applesingle appledouble
2017-06-13 18:06:02 +00:00
.PHONY: clean
clean :
$(RM) *.o dot_clean applesingle appledouble
$(MAKE) -C afp clean
.PHONY: submodules
submodules :
$(MAKE) -C afp
2017-06-13 18:06:02 +00:00
afp/libafp.a : submodules
2017-06-13 18:06:02 +00:00
dot_clean : dot_clean.o mapped_file.o afp/libafp.a
2016-08-04 00:17:54 +00:00
applesingle : applesingle.o mapped_file.o afp/libafp.a
appledouble : appledouble.o mapped_file.o afp/libafp.a
2017-03-04 19:07:30 +00:00
2016-08-05 00:28:49 +00:00
mapped_file.o : mapped_file.cpp mapped_file.h unique_resource.h
2016-08-05 00:39:31 +00:00
dot_clean.o : dot_clean.cpp mapped_file.h applefile.h defer.h
2017-03-04 19:07:30 +00:00
applesingle.o : applesingle.cpp mapped_file.h applefile.h defer.h
2017-03-04 19:14:27 +00:00
appledouble.o : appledouble.cpp mapped_file.h applefile.h defer.h
2017-03-04 19:07:30 +00:00