diff options
Diffstat (limited to 'tools/adk2inst/makefile')
-rw-r--r-- | tools/adk2inst/makefile | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/tools/adk2inst/makefile b/tools/adk2inst/makefile deleted file mode 100644 index 6e113c4..0000000 --- a/tools/adk2inst/makefile +++ /dev/null @@ -1,68 +0,0 @@ - -TARGET := adk2inst -BUILDDIR := build-$(TARGET) - -# compiler flags, default libs to link against -COMPILEFLAGS := -g -O2 -CFLAGS := -CPPFLAGS := -ASMFLAGS := -LDFLAGS := -LDLIBS := - -UNAME := $(shell uname -s) -ARCH := $(shell uname -m) - -# switch any platform specific stuff here -# ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) -# ... -# endif -ifeq ($(UNAME),Darwin) -COMPILEFLAGS += -arch i386 -LDFLAGS += -arch i386 -endif -ifeq ($(UNAME),Linux) -COMPILEFLAGS += -m32 -LDFLAGS += -m32 -endif - -CFLAGS += $(COMPILEFLAGS) -CPPFLAGS += $(COMPILEFLAGS) -ASMFLAGS += $(COMPILEFLAGS) - -OBJS := adk2inst.o - -OBJS := $(addprefix $(BUILDDIR)/,$(OBJS)) - -DEPS := $(OBJS:.o=.d) - -$(BUILDDIR)/$(TARGET): $(OBJS) - $(CC) $(LDFLAGS) $(OBJS) -o $@ $(LDLIBS) - -clean: - rm -f $(OBJS) $(DEPS) $(TARGET) - -spotless: - rm -rf build-* - -# makes sure the target dir exists -MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi - -$(BUILDDIR)/%.o: %.c - @$(MKDIR) - @echo compiling $< - $(CC) $(CFLAGS) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@ - -$(BUILDDIR)/%.o: %.cpp - @$(MKDIR) - @echo compiling $< - @$(CC) $(CPPFLAGS) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@ - -$(BUILDDIR)/%.o: %.S - @$(MKDIR) - @echo compiling $< - @$(CC) $(ASMFLAGS) -c $< -MD -MT $@ -MF $(@:%o=%d) -o $@ - -ifeq ($(filter $(MAKECMDGOALS), clean), ) --include $(DEPS) -endif |