all: $(BUILD_ROOT)/build/bin/$(BINTARGET)
$(BUILD_ROOT)/build/bin/$(BINTARGET): $(OBJ)
- $(LD) -o $(BUILD_ROOT)/build/bin/$(BINTARGET) $(OBJ) -L$(BUILD_ROOT)/build/lib -lucx $(LDFLAGS) $(APP_LDFLAGS)
+ $(CC) -o $(BUILD_ROOT)/build/bin/$(BINTARGET) $(OBJ) -L$(BUILD_ROOT)/build/lib -lucx $(LDFLAGS) $(APP_LDFLAGS)
$(BUILD_ROOT)/build/application/%.$(OBJ_EXT): %.c
$(CC) $(CFLAGS) $(APP_CFLAGS) -o $@ -c $<
# check languages
lang_c=
lang_cpp=
+if detect_c_compiler ; then
+ lang_c=1
+fi
# create buffer for make variables required by dependencies
echo > "$TEMP_DIR/make.mk"
TEMP_LDFLAGS=
while true
do
- if notisplatform "unix"; then
- break
- fi
while true
do
+ if [ -z "$lang_c" ] ; then
+ ERROR=1
+ break
+ fi
- cat >> "$TEMP_DIR/make.mk" << __EOF__
-OBJ_EXT = o
-LIB_EXT = a
-PACKAGE_SCRIPT = package_unix.sh
-__EOF__
+ TEMP_LDFLAGS="$TEMP_LDFLAGS -lpthread"
break
done
break
done
while true
do
+ if notisplatform "unix"; then
+ break
+ fi
while true
do
- TEMP_LDFLAGS="$TEMP_LDFLAGS -lpthread"
+ cat >> "$TEMP_DIR/make.mk" << __EOF__
+OBJ_EXT = o
+LIB_EXT = a
+PACKAGE_SCRIPT = package_unix.sh
+__EOF__
break
done
break
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://unixwork.de/uwproj">
+ <dependency>
+ <lang>c</lang>
+ <ldflags>-lpthread</ldflags>
+ </dependency>
+
<dependency name="motif">
<cflags>-DUI_MOTIF</cflags>
<ldflags>-lXm -lXt -lX11</ldflags>
<pkgconfig>fontconfig</pkgconfig>
</dependency>
- <dependency>
- <ldflags>-lpthread</ldflags>
- </dependency>
-
<dependency platform="bsd">
<cflags>-I/usr/local/include</cflags>
<ldflags>-L/usr/local/lib</ldflags>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="TargetDataGroup"/>
- <xs:element name="desc" type="xs:string"/>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="arg" type="xs:string"/>
<xs:attribute name="default" type="xs:boolean" default="false"/>
+ <xs:element name="desc" type="xs:string"/>
</xs:complexType>
<xs:complexType name="OptionType">