dot_clean/Makefile

43 lines
946 B
Makefile
Raw Normal View History

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