1 # Rules for XCSoarLaunch.dll, the launcher for the PocketPC shell
3 ifeq ($(HAVE_CE
)$(findstring $(TARGET
),ALTAIR
),y
)
5 LAUNCH_RESOURCE_FILES
= $(BMP_LAUNCH_DLL_FLY_224
) $(BMP_LAUNCH_DLL_SIM_224
)
7 XCSOARLAUNCH_DLL
= $(TARGET_BIN_DIR
)/XCSoarLaunch.dll
8 XCSOARLAUNCH_SOURCES
= \
10 XCSOARLAUNCH_OBJS
= $(call SRC_TO_OBJ
,$(XCSOARLAUNCH_SOURCES
))
11 $(XCSOARLAUNCH_OBJS
): CFLAGS
+= -Wno-missing-declarations
-Wno-missing-prototypes
13 $(TARGET_OUTPUT_DIR
)/XCSoarLaunch.e
: $(SRC
)/XCSoarLaunch.def
$(XCSOARLAUNCH_OBJS
) |
$(TARGET_BIN_DIR
)/dirstamp
14 $(Q
)$(DLLTOOL
) -e
$@
-d
$^
16 $(TARGET_OUTPUT_DIR
)/XCSoarLaunch.rsc
: Data
/XCSoarLaunch.rc
$(LAUNCH_RESOURCE_FILES
) |
$(TARGET_OUTPUT_DIR
)/dirstamp
17 @
$(NQ
)echo
" WINDRES $@"
18 $(Q
)$(WINDRES
) $(WINDRESFLAGS
) -o
$@
$<
20 $(XCSOARLAUNCH_DLL
): TARGET_LDLIBS
= -laygshell
21 $(XCSOARLAUNCH_DLL
): $(TARGET_OUTPUT_DIR
)/XCSoarLaunch.e
$(XCSOARLAUNCH_OBJS
) $(TARGET_OUTPUT_DIR
)/XCSoarLaunch.rsc |
$(TARGET_BIN_DIR
)/dirstamp
22 $(Q
)$(LINK
) -shared
$(ld-flags
) $^
$(ld-libs
) -o
$@
30 ifeq ($(HAVE_WIN32
),y
)
32 LAUNCH_XCSOAR_SOURCES
= \
33 $(SRC
)/LaunchXCSoar.
cpp
34 LAUNCH_XCSOAR_DEPENDS
= OS
35 LAUNCH_XCSOAR_STRIP
= y
37 $(eval
$(call link-program
,LaunchXCSoar
,LAUNCH_XCSOAR
))