flycast/shell/linux/Makefile

479 lines
14 KiB
Makefile
Raw Normal View History

2018-03-22 13:43:27 +00:00
LOCAL_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2015-07-14 01:35:34 +00:00
FOR_LINUX :=1
#NO_REC := 1
#NO_REND := 1
WEBUI :=1
2015-07-14 01:35:34 +00:00
USE_OSS := 1
#USE_PULSEAUDIO := 1
2018-08-24 20:59:24 +00:00
#USE_LIBAO := 1
USE_EVDEV := 1
PLATFORM_EXT := elf
2015-07-14 01:35:34 +00:00
CXX=${CC_PREFIX}g++
CC=${CC_PREFIX}gcc
AS=${CC_PREFIX}as
STRIP=${CC_PREFIX}strip
LD=${CC}
MFLAGS :=
ASFLAGS :=
LDFLAGS :=
INCS :=
LIBS :=
CFLAGS :=
CXXFLAGS :=
2015-07-14 01:35:34 +00:00
ifneq (, $(filter $(shell uname -s), FreeBSD OpenBSD NetBSD DragonFly))
CFLAGS += -DTARGET_BSD
else
USE_ALSA := 1
# USE_JOYSTICK := 1
endif
# Platform auto-detection
# Can be overridden by using:
# make platform=x64
ifeq (,$(platform))
ARCH = $(shell uname -m)
ifeq ($(ARCH), $(filter $(ARCH), i386 i686))
platform = x86
else ifeq ($(ARCH), $(filter $(ARCH), x86_64 AMD64 amd64))
platform = x64
2018-01-16 13:38:00 +00:00
else ifneq (,$(findstring aarch64,$(ARCH)))
HARDWARE = $(shell grep Hardware /proc/cpuinfo)
ifneq (,$(findstring Vero4K,$(HARDWARE)))
platform = vero4k
FEATURES = $(shell grep Features /proc/cpuinfo)
ifneq (,$(findstring neon,$(FEATURES)))
platform += neon
endif
endif
else ifneq (,$(findstring arm,$(ARCH)))
HARDWARE = $(shell grep Hardware /proc/cpuinfo)
ifneq (,$(findstring BCM2709,$(HARDWARE)))
platform = rpi2
else ifneq (,$(findstring AM33XX,$(HARDWARE)))
platform = beagle
else ifneq (,$(findstring Pandora,$(HARDWARE)))
platform = pandora
2015-07-28 15:10:21 +00:00
else ifneq (,$(findstring ODROIDC,$(HARDWARE)))
platform = odroidc1
else ifneq (,$(findstring ODROID-XU3,$(HARDWARE)))
platform = odroidxu3
else ifneq (,$(findstring ODROID-XU4,$(HARDWARE)))
platform = odroidxu3
else ifneq (,$(findstring ODROIDXU,$(HARDWARE)))
platform = odroidxu
else ifneq (,$(findstring ODROIDX2,$(HARDWARE)))
platform = odroidx2
else ifneq (,$(findstring ODROIDX,$(HARDWARE)))
platform = odroidx
else ifneq (,$(findstring ODROID-U2/U3,$(HARDWARE)))
platform = odroidu2
else ifneq (,$(findstring ODROIDU2,$(HARDWARE)))
platform = odroidu2
else
2015-08-22 02:04:28 +00:00
platform = armv7h
endif
2015-07-27 15:25:19 +00:00
else ifneq (,$(findstring mips,$(ARCH)))
platform = gcwz
else
$(warning Unsupported CPU architecture, using lincpp)
platform = lincpp
endif
FLAGS = $(shell grep flags /proc/cpuinfo)
ifneq (,$(findstring sse4_1,$(FLAGS)))
platform += sse4_1
endif
endif
2015-07-14 01:35:34 +00:00
$(info Platform: $(platform))
# Generic 32 bit x86 (a.k.a. i386/i486/i686)
ifneq (,$(findstring x86,$(platform)))
X86_REC := 1
NOT_ARM := 1
USE_X11 := 1
MFLAGS += -m32
ASFLAGS += --32
LDFLAGS += -m32
2018-08-01 17:43:01 +00:00
CFLAGS += -m32 -D TARGET_LINUX_x86 -D TARGET_NO_AREC -fno-builtin-sqrtf
2018-08-01 16:02:50 +00:00
CXXFLAGS += -fexceptions
ifneq (,$(findstring sse4_1,$(platform)))
HAS_SOFTREND := 1
endif
# Generic 64 bit x86 (a.k.a. x64/AMD64/x86_64/Intel64/EM64T)
else ifneq (,$(findstring x64,$(platform)))
X64_REC := 1
NOT_ARM := 1
USE_X11 := 1
2018-08-01 17:43:01 +00:00
CFLAGS += -D TARGET_LINUX_x64 -D TARGET_NO_AREC -fno-builtin-sqrtf
CXXFLAGS += -fexceptions
ifneq (,$(findstring sse4_1,$(platform)))
HAS_SOFTREND := 1
endif
2015-08-22 02:04:28 +00:00
# Generic 32 bit ARMhf (a.k.a. ARMv7h)
else ifneq (,$(findstring armv7h,$(platform)))
2015-08-22 02:13:50 +00:00
MFLAGS += -marm -mfloat-abi=hard -march=armv7-a -funroll-loops
ASFLAGS += -mfloat-abi=hard -march=armv7-a
ifneq (,$(findstring neon,$(platform)))
MFLAGS += -mfpu=neon
ASFLAGS += -mfpu=neon
endif
2015-08-21 22:57:57 +00:00
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
USE_GLES := 1
# LinCPP
else ifneq (,$(findstring lincpp,$(platform)))
CPP_REC := 1
NOT_ARM := 1
USE_X11 := 1
CFLAGS += -D TARGET_LINUX_x64 -D TARGET_NO_JIT
CXXFLAGS += -fexceptions -std=gnu++11
# Raspberry Pi 2
2018-04-12 19:10:22 +00:00
else ifneq (,$(findstring rpi,$(platform)))
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
2018-04-12 19:10:22 +00:00
ifneq (,$(findstring rpi2,$(platform)))
MFLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
ASFLAGS += -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
else ifneq (,$(findstring rpi3,$(platform)))
MFLAGS += -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
ASFLAGS += -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
endif
ifneq (,$(findstring mesa,$(platform)))
USE_SDL := 1
USE_GLES := 1
else
INCS += -I/opt/vc/include/ -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads
LIBS += -L/opt/vc/lib/ -lbcm_host
LIBS += -lbrcmEGL -lbrcmGLESv2
CFLAGS += -D TARGET_VIDEOCORE
CXXFLAGS += -DGLES
USE_OMX := 1
USE_DISPMANX := 1
endif
2016-03-02 05:48:34 +00:00
undefine USE_X11
# BeagleBone Black
else ifneq (,$(findstring beagle,$(platform)))
CC_PREFIX ?= arm-none-linux-gnueabi-
MFLAGS += -marm -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp -funroll-loops
ASFLAGS := -march=armv7-a -mfpu=neon -mfloat-abi=softfp
CFLAGS += -D TARGET_BEAGLE -fsingle-precision-constant
USE_GLES := 1
# Pandora
else ifneq (,$(findstring pandora,$(platform)))
FOR_PANDORA := 1
USE_X11 := 1
USE_SDL := 1
PGO_USE := 1
USE_GLES := 1
MFLAGS +== -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -funroll-loops -fpermissive
ASFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=softfp
CFLAGS += -D TARGET_PANDORA -D WEIRD_SLOWNESS -fsingle-precision-constant
# ODROIDs
else ifneq (,$(findstring odroid,$(platform)))
MFLAGS += -marm -mfpu=neon -mfloat-abi=hard -funroll-loops
ASFLAGS += -mfpu=neon -mfloat-abi=hard
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
2015-07-28 15:10:21 +00:00
USE_GLES := 1
# ODROID-XU3, -XU3 Lite & -XU4
ifneq (,$(findstring odroidxu3,$(platform)))
MFLAGS += -march=armv7ve -mtune=cortex-a15.cortex-a7
ASFLAGS += -march=armv7ve
# Other ODROIDs
else
MFLAGS += -march=armv7-a
ASFLAGS += -march=armv7-a
# ODROID-C1 & -C1+
ifneq (,$(findstring odroidc1,$(platform)))
MFLAGS += -mtune=cortex-a5
# ODROID-U2, -U3, -X & -X2
else
MFLAGS += -mtune=cortex-a9
endif
endif
2015-07-27 15:25:19 +00:00
# GCW Zero
else ifneq (,$(findstring gcwz,$(platform)))
NOT_ARM := 1
NO_REC := 1
CC_PREFIX ?= /opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-
CFLAGS += -D TARGET_GCW0 -D TARGET_NO_REC -fsingle-precision-constant
2015-07-27 15:25:19 +00:00
LIBS += -L../linux-deps/lib -L./enta_viv -lglapi
GCWZ_PKG = reicast-gcwz.opk
GCWZ_PKG_FILES = gcwz/default.gcw0.desktop gcwz/icon-32.png
2018-01-16 13:38:00 +00:00
# Vero4K
else ifneq (,$(findstring vero4k,$(platform)))
MFLAGS += -marm -march=armv8-a+crc -mtune=cortex-a53 -mfloat-abi=hard -funsafe-math-optimizations -funroll-loops
ASFLAGS += -mfloat-abi=hard
ifneq (,$(findstring neon,$(platform)))
MFLAGS += -mfpu=neon
ASFLAGS += -mfpu=neon
endif
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
INCS += -I/opt/vero3/include/
LIBS += -L/opt/vero3/lib/ -lEGL -lGLESv2
USE_GLES := 1
USE_SDL := 1
# Windows
else ifneq (,$(findstring win32,$(platform)))
X64_REC := 1
NOT_ARM := 1
CFLAGS += -DTARGET_NO_WEBUI -fno-builtin-sqrtf -funroll-loops
LDFLAGS += -static-libgcc -static-libstdc++
LIBS := -lopengl32 -lwinmm -lgdi32 -lwsock32 -ldsound -lcomctl32 -lcomdlg32 -lxinput -liphlpapi
PLATFORM_EXT := exe
CC = gcc
CXX = g++
ifeq ($(WITH_DYNAREC), x86)
LDFLAGS += -m32
CFLAGS += -m32
else
CFLAGS += -D TARGET_NO_AREC
endif
undefine USE_X11
undefine USE_ALSA
undefine USE_OSS
undefine USE_EVDEV
undefine FOR_LINUX
undefine WEBUI
NO_NIXPROF := 1
FOR_WINDOWS := 1
else
$(error Unknown platform)
endif
2018-03-22 13:43:27 +00:00
RZDCY_SRC_DIR = $(LOCAL_PATH)/../../core
include $(RZDCY_SRC_DIR)/core.mk
2015-07-14 01:35:34 +00:00
2018-08-02 16:44:51 +00:00
LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common -fopenmp
2015-07-14 01:35:34 +00:00
2018-09-17 15:52:29 +00:00
CFLAGS += $(RZDCY_CFLAGS) -g -O3 -D RELEASE -c -D USES_HOMEDIR -fopenmp #-D NO_REND
CFLAGS += -frename-registers -fno-strict-aliasing
CFLAGS += -ffast-math -ftree-vectorize
2015-07-14 01:35:34 +00:00
2018-09-17 15:52:29 +00:00
CXXFLAGS += $(RZDCY_CFLAGS) -fno-rtti -fpermissive -fno-operator-names -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++11
2015-07-14 01:35:34 +00:00
INCS += -I$(RZDCY_SRC_DIR) -I$(RZDCY_SRC_DIR)/deps -I$(RZDCY_SRC_DIR)/khronos
LIBS += -lm -lpthread
ifdef FOR_LINUX
LIBS += -lrt -ldl
endif
2015-08-22 14:08:53 +00:00
PREFIX ?= /usr/local
2015-08-22 15:05:47 +00:00
MAN_DIR ?= ${PREFIX}/share/man/man1
2015-08-24 14:43:44 +00:00
MENUENTRY_DIR ?= ${PREFIX}/share/applications
ICON_DIR ?= ${PREFIX}/share/pixmaps
2015-08-22 14:08:53 +00:00
ifdef USE_SDL
CXXFLAGS += `sdl2-config --cflags` -D USE_SDL
LIBS += `sdl2-config --libs`
endif
2015-07-14 01:35:34 +00:00
ifdef PGO_MAKE
CFLAGS += -fprofile-generate -pg
LDFLAGS += -fprofile-generate
2015-07-14 01:35:34 +00:00
else
CFLAGS += -fomit-frame-pointer
2015-07-14 01:35:34 +00:00
endif
ifdef PGO_USE
CFLAGS += -fprofile-use
2015-07-14 01:35:34 +00:00
endif
ifdef LTO_TEST
CFLAGS += -flto -fwhole-program
LDFLAGS +=-flto -fwhole-program
2015-07-14 01:35:34 +00:00
endif
2016-03-02 05:48:34 +00:00
ifdef USE_DISPMANX
CFLAGS += -D SUPPORT_DISPMANX
CXXFLAGS += -D SUPPORT_DISPMANX
endif
2015-07-27 14:22:29 +00:00
ifdef USE_X11
CFLAGS += `pkg-config --cflags x11` -D SUPPORT_X11
CXXFLAGS += `pkg-config --cflags x11` -D SUPPORT_X11
LIBS += `pkg-config --libs x11`
2015-07-27 14:22:29 +00:00
endif
2015-07-14 01:35:34 +00:00
ifdef USE_EVDEV
CXXFLAGS += -D USE_EVDEV
endif
ifdef USE_JOYSTICK
CXXFLAGS += -D USE_JOYSTICK
endif
2016-03-02 05:48:34 +00:00
ifdef USE_OMX
CXXFLAGS += -D USE_OMX
LIBS += -lopenmaxil
endif
2015-07-14 01:35:34 +00:00
ifdef USE_ALSA
CXXFLAGS += `pkg-config --cflags alsa` -D USE_ALSA
LIBS += `pkg-config --libs alsa`
2015-07-14 01:35:34 +00:00
endif
ifdef USE_OSS
CXXFLAGS += -D USE_OSS
2015-07-14 01:35:34 +00:00
endif
ifdef USE_PULSEAUDIO
CXXFLAGS += `pkg-config --cflags libpulse-simple` -D USE_PULSEAUDIO
LIBS += `pkg-config --libs libpulse-simple`
2015-07-14 01:35:34 +00:00
endif
2018-08-24 20:59:24 +00:00
ifdef USE_LIBAO
CXXFLAGS += `pkg-config --cflags ao` -D USE_LIBAO
LIBS += `pkg-config --libs ao`
endif
ifdef HAS_SOFTREND
2018-08-02 16:44:51 +00:00
CFLAGS += -msse4.1
endif
# these are also handled on core.mk, but ignored here
2015-07-26 14:12:16 +00:00
# GLES on x11?
2015-07-21 14:01:06 +00:00
ifdef USE_GLES
CXXFLAGS += -DGLES
LIBS += -lEGL -lGLESv2
else ifdef FOR_LINUX
LIBS += -ldl -lGL #for desktop gl
2015-07-21 14:01:06 +00:00
endif
#softrend?
ifdef HAS_SOFTREND
CXXFLAGS += -DTARGET_SOFTREND
endif
EXECUTABLE_STRIPPED=nosym-reicast.$(PLATFORM_EXT)
ifdef NAOMI
CFLAGS += -D TARGET_NAOMI -D SAVE_EPPROM
DC_PLATFORM=naomi
EXECUTABLE=reicast_naomi.$(PLATFORM_EXT)
EXECUTABLE_NAME=reicast-naomi
2018-07-16 15:19:45 +00:00
else ifdef DISPFRAME
CFLAGS += -D TARGET_DISPFRAME
2018-08-01 17:43:01 +00:00
DC_PLATFORM=dispframe
EXECUTABLE=dispframe.$(PLATFORM_EXT)
2018-07-16 15:19:45 +00:00
EXECUTABLE_NAME=dispframe
else
DC_PLATFORM=dreamcast
EXECUTABLE=reicast.$(PLATFORM_EXT)
EXECUTABLE_NAME=reicast
endif
2015-07-14 01:35:34 +00:00
2018-10-18 09:55:17 +00:00
ifndef NOT_ARM
AS=${CC_PREFIX}gcc
ASFLAGS += $(CFLAGS)
endif
CHAR_EMPTY:=
CHAR_SPACE:=$(CHAR_EMPTY) $(CHAR_EMPTY)
BUILDDIR:=obj-$(DC_PLATFORM)-$(subst $(CHAR_SPACE),-,$(platform))
2015-07-14 01:35:34 +00:00
OBJECTS=$(RZDCY_FILES:.cpp=.build_obj)
OBJECTS:=$(OBJECTS:.c=.build_obj)
OBJECTS:=$(OBJECTS:.S=.build_obj)
OBJECTS:=$(patsubst $(RZDCY_SRC_DIR)/%,$(BUILDDIR)/%,$(OBJECTS))
2015-07-27 16:47:19 +00:00
DEPDIR := .dep-$(BUILDDIR)
DEPFLAGS = -MT $@ -MD -MP -MF $(DEPDIR)/$*.Td
DEPS=$(RZDCY_FILES:.cpp=.d)
DEPS:=$(DEPS:.c=.d)
DEPS:=$(DEPS:.S=.d)
DEPS:=$(patsubst $(RZDCY_SRC_DIR)/%,$(DEPDIR)/%,$(DEPS))
POSTCOMPILE = mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d
2015-07-14 01:35:34 +00:00
all: $(CPPFILES) $(EXECUTABLE) $(EXECUTABLE_STRIPPED)
2015-07-27 15:25:19 +00:00
ifneq (,$(findstring gcwz,$(platform)))
mksquashfs $(EXECUTABLE_STRIPPED) $(GCWZ_PKG_FILES) $(GCWZ_PKG) -all-root
endif
2015-07-14 01:35:34 +00:00
$(EXECUTABLE): $(OBJECTS)
$(CXX) $(MFLAGS) $(EXTRAFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
2015-07-14 01:35:34 +00:00
$(EXECUTABLE_STRIPPED): $(EXECUTABLE)
cp $< $@ && $(STRIP) $@
$(BUILDDIR)/%.build_obj : $(RZDCY_SRC_DIR)/%.cpp
$(BUILDDIR)/%.build_obj: $(RZDCY_SRC_DIR)/%.cpp $(DEPDIR)/%.d
2015-07-14 01:35:34 +00:00
mkdir -p $(dir $@)
mkdir -p .dep-$(dir $@)
$(CXX) $(EXTRAFLAGS) $(INCS) $(DEPFLAGS) $(CFLAGS) $(MFLAGS) $(CXXFLAGS) $< -o $@
$(POSTCOMPILE)
$(BUILDDIR)/%.build_obj : $(RZDCY_SRC_DIR)/%.c
$(BUILDDIR)/%.build_obj: $(RZDCY_SRC_DIR)/%.c $(DEPDIR)/%.d
2015-07-14 01:35:34 +00:00
mkdir -p $(dir $@)
mkdir -p .dep-$(dir $@)
$(CC) $(EXTRAFLAGS) $(INCS) $(DEPFLAGS) $(CFLAGS) $< -o $@
$(POSTCOMPILE)
2015-07-14 01:35:34 +00:00
$(BUILDDIR)/%.build_obj : $(RZDCY_SRC_DIR)/%.S
mkdir -p $(dir $@)
$(AS) $(ASFLAGS) $(INCS) $< -o $@
2015-07-14 01:35:34 +00:00
2015-08-22 14:08:53 +00:00
install: $(EXECUTABLE)
mkdir -p $(DESTDIR)$(PREFIX)/bin 2>/dev/null || true
mkdir -p $(DESTDIR)$(PREFIX)/share/reicast/mappings 2>/dev/null || true
mkdir -p $(DESTDIR)$(MAN_DIR) 2>/dev/null || true
mkdir -p $(DESTDIR)$(MENUENTRY_DIR) 2>/dev/null || true
mkdir -p $(DESTDIR)$(ICON_DIR) 2>/dev/null || true
install -m755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE_NAME)
2015-08-26 22:45:10 +00:00
install -m755 tools/reicast-joyconfig.py $(DESTDIR)$(PREFIX)/bin/reicast-joyconfig
install -m644 mappings/controller_gcwz.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
install -m644 mappings/controller_generic.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
install -m644 mappings/controller_pandora.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
install -m644 mappings/controller_xboxdrv.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
install -m644 mappings/controller_xpad.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
install -m644 mappings/keyboard.cfg $(DESTDIR)$(PREFIX)/share/reicast/mappings
2015-08-22 15:05:47 +00:00
install -m644 man/reicast.1 $(DESTDIR)$(MAN_DIR)
install -m644 man/reicast-joyconfig.1 $(DESTDIR)$(MAN_DIR)
2015-08-24 14:43:44 +00:00
install -m644 reicast.desktop $(DESTDIR)$(MENUENTRY_DIR)
install -m644 reicast.png $(DESTDIR)$(ICON_DIR)
install -m644 font.png $(DESTDIR)$(ICON_DIR)
2015-08-22 14:08:53 +00:00
uninstall:
2015-08-27 12:59:46 +00:00
rm -f $(DESTDIR)$(PREFIX)/bin/$(EXECUTABLE_NAME)
rm -f $(DESTDIR)$(PREFIX)/bin/reicast-joyconfig
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/controller_gcwz.cfg
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/controller_generic.cfg
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/controller_pandora.cfg
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/controller_xboxdrv.cfg
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/controller_xpad.cfg
rm -f $(DESTDIR)$(PREFIX)/share/reicast/mappings/keyboard.cfg
2015-08-22 15:05:47 +00:00
rm -f $(DESTDIR)$(MAN_DIR)/reicast.1
rm -f $(DESTDIR)$(MAN_DIR)/reicast-joyconfig.1
rm -f $(DESTDIR)$(MENUENTRY_DIR)/reicast.desktop
rm -f $(DESTDIR)$(ICON_DIR)/reicast.png
rm -f $(DESTDIR)$(ICON_DIR)/font.png
2015-08-22 14:08:53 +00:00
2015-07-14 01:35:34 +00:00
clean:
rm -f $(OBJECTS) $(EXECUTABLE) $(EXECUTABLE_STRIPPED) .map
.PRECIOUS = $(DEPDIR)/%.d
$(DEPDIR)/%.d: ;
-include $(DEPS)