blob: c856cf6854805e715fb1649bc22b44ee819b1962 [file] [log] [blame] [raw]
# This file is generated by gyp; do not edit.
TOOLSET := target
TARGET := nodesdl
DEFS_Default :=
# Flags passed to all source files.
CFLAGS_Default := \
-I/usr/include/SDL \
-D_GNU_SOURCE=1 \
-D_REENTRANT
# Flags passed to only C files.
CFLAGS_C_Default :=
# Flags passed to only C++ files.
CFLAGS_CC_Default :=
INCS_Default :=
OBJS := \
$(obj).target/$(TARGET)/node/node_modules/node-sdl/src/helpers.o \
$(obj).target/$(TARGET)/node/node_modules/node-sdl/src/nodesdl.o
# Add to the list of files we specially track dependencies for.
all_deps += $(OBJS)
# CFLAGS et al overrides must be target-local.
# See "Target-specific Variable Values" in the GNU Make manual.
$(OBJS): TOOLSET := $(TOOLSET)
$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
# Suffix rules, putting all outputs into $(obj).
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
@$(call do_cmd,cxx,1)
# Try building from generated source, too.
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
@$(call do_cmd,cxx,1)
$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
@$(call do_cmd,cxx,1)
# End of this set of suffix rules
### Rules for final target.
LDFLAGS_Default := \
-L/usr/lib \
-lSDL \
-lpthread \
-lSDL_ttf \
-lSDL_image
LIBS :=
$(obj).target/node/node_modules/node-sdl/libnodesdl.so: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
$(obj).target/node/node_modules/node-sdl/libnodesdl.so: LIBS := $(LIBS)
$(obj).target/node/node_modules/node-sdl/libnodesdl.so: LD_INPUTS := $(OBJS)
$(obj).target/node/node_modules/node-sdl/libnodesdl.so: TOOLSET := $(TOOLSET)
$(obj).target/node/node_modules/node-sdl/libnodesdl.so: $(OBJS) FORCE_DO_CMD
$(call do_cmd,solink)
all_deps += $(obj).target/node/node_modules/node-sdl/libnodesdl.so
# Add target alias
.PHONY: nodesdl
nodesdl: $(builddir)/libnodesdl.so
# Copy this to the shared library output path.
$(builddir)/libnodesdl.so: TOOLSET := $(TOOLSET)
$(builddir)/libnodesdl.so: $(obj).target/node/node_modules/node-sdl/libnodesdl.so FORCE_DO_CMD
$(call do_cmd,copy)
all_deps += $(builddir)/libnodesdl.so
# Short alias for building this shared library.
.PHONY: libnodesdl.so
libnodesdl.so: $(obj).target/node/node_modules/node-sdl/libnodesdl.so $(builddir)/libnodesdl.so
# Add shared library to "all" target.
.PHONY: all
all: $(builddir)/libnodesdl.so