-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 25f37b7
Showing
34 changed files
with
1,207 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MAIN_DIR = src | ||
TEST_DIR = test | ||
|
||
.PHONY: main test | ||
|
||
all: main test | ||
|
||
main: | ||
$(MAKE) -C $(MAIN_DIR) | ||
|
||
test: | ||
$(MAKE) -C $(TEST_DIR) | ||
|
||
clean: | ||
$(MAKE) -C $(MAIN_DIR) clean | ||
$(MAKE) -C $(TEST_DIR) clean | ||
|
||
run-main: | ||
$(MAKE) -C $(MAIN_DIR) run | ||
|
||
run-test: | ||
$(MAKE) -C $(TEST_DIR) run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/bash -x | ||
|
||
# | ||
# Generated - do not edit! | ||
# | ||
|
||
# Macros | ||
TOP=`pwd` | ||
CND_PLATFORM=GNU-MacOSX | ||
CND_CONF=Default | ||
CND_DISTDIR=dist | ||
CND_BUILDDIR=build | ||
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging | ||
TMPDIRNAME=tmp-packaging | ||
OUTPUT_PATH=MissingOutputInProject | ||
OUTPUT_BASENAME=MissingOutputInProject | ||
PACKAGE_TOP_DIR=setready-AES/ | ||
|
||
# Functions | ||
function checkReturnCode | ||
{ | ||
rc=$? | ||
if [ $rc != 0 ] | ||
then | ||
exit $rc | ||
fi | ||
} | ||
function makeDirectory | ||
# $1 directory path | ||
# $2 permission (optional) | ||
{ | ||
mkdir -p "$1" | ||
checkReturnCode | ||
if [ "$2" != "" ] | ||
then | ||
chmod $2 "$1" | ||
checkReturnCode | ||
fi | ||
} | ||
function copyFileToTmpDir | ||
# $1 from-file path | ||
# $2 to-file path | ||
# $3 permission | ||
{ | ||
cp "$1" "$2" | ||
checkReturnCode | ||
if [ "$3" != "" ] | ||
then | ||
chmod $3 "$2" | ||
checkReturnCode | ||
fi | ||
} | ||
|
||
# Setup | ||
cd "${TOP}" | ||
mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package | ||
rm -rf ${NBTMPDIR} | ||
mkdir -p ${NBTMPDIR} | ||
|
||
# Copy files and create directories and links | ||
cd "${TOP}" | ||
makeDirectory "${NBTMPDIR}/setready-AES" | ||
copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 | ||
|
||
|
||
# Generate tar file | ||
cd "${TOP}" | ||
rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/setready-AES.tar | ||
cd ${NBTMPDIR} | ||
tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/setready-AES.tar * | ||
checkReturnCode | ||
|
||
# Cleanup | ||
cd "${TOP}" | ||
rm -rf ${NBTMPDIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configurationDescriptor version="84"> | ||
<logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT"> | ||
<df name="template_project" root="."> | ||
<df name="src"> | ||
<in>main.c</in> | ||
</df> | ||
<df name="test"> | ||
<in>tmc-check.c</in> | ||
<in>tmc-check.h</in> | ||
</df> | ||
</df> | ||
<logicalFolder name="ExternalFiles" | ||
displayName="Important Files" | ||
projectFiles="false" | ||
kind="IMPORTANT_FILES_FOLDER"> | ||
<itemPath>Makefile</itemPath> | ||
</logicalFolder> | ||
</logicalFolder> | ||
<sourceFolderFilter>^(nbproject)$</sourceFolderFilter> | ||
<sourceRootList> | ||
<Elem>.</Elem> | ||
</sourceRootList> | ||
<projectmakefile>Makefile</projectmakefile> | ||
<confs> | ||
<conf name="Default" type="0"> | ||
<toolsSet> | ||
<remote-sources-mode>LOCAL_SOURCES</remote-sources-mode> | ||
<compilerSet>default</compilerSet> | ||
</toolsSet> | ||
<codeAssistance> | ||
</codeAssistance> | ||
<makefileType> | ||
<makeTool> | ||
<buildCommandWorkingDir>.</buildCommandWorkingDir> | ||
<buildCommand>${MAKE} -f Makefile</buildCommand> | ||
<cleanCommand>${MAKE} -f Makefile clean</cleanCommand> | ||
<executablePath></executablePath> | ||
</makeTool> | ||
</makefileType> | ||
<item path="src/main.c" ex="false" tool="0" flavor2="2"> | ||
<cTool> | ||
</cTool> | ||
</item> | ||
<item path="test/tmc-check.c" ex="false" tool="0" flavor2="2"> | ||
<cTool> | ||
</cTool> | ||
</item> | ||
</conf> | ||
</confs> | ||
</configurationDescriptor> |
Empty file.
39 changes: 39 additions & 0 deletions
39
private/template_project/nbproject/private/configurations.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configurationDescriptor version="84"> | ||
<projectmakefile>Makefile</projectmakefile> | ||
<confs> | ||
<conf name="Default" type="0"> | ||
<toolsSet> | ||
<developmentServer>localhost</developmentServer> | ||
<platform>4</platform> | ||
</toolsSet> | ||
<dbx_gdbdebugger version="1"> | ||
<gdb_pathmaps> | ||
</gdb_pathmaps> | ||
<gdb_interceptlist> | ||
<gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/> | ||
</gdb_interceptlist> | ||
<gdb_options> | ||
<DebugOptions> | ||
</DebugOptions> | ||
</gdb_options> | ||
<gdb_buildfirst gdb_buildfirst_overriden="false" gdb_buildfirst_old="false"/> | ||
</dbx_gdbdebugger> | ||
<nativedebugger version="1"> | ||
<engine>gdb</engine> | ||
</nativedebugger> | ||
<runprofile version="9"> | ||
<runcommandpicklist> | ||
<runcommandpicklistitem>"${OUTPUT_PATH}"</runcommandpicklistitem> | ||
</runcommandpicklist> | ||
<runcommand>"${OUTPUT_PATH}"</runcommand> | ||
<rundir>.</rundir> | ||
<buildfirst>true</buildfirst> | ||
<terminal-type>0</terminal-type> | ||
<remove-instrumentation>0</remove-instrumentation> | ||
<environment> | ||
</environment> | ||
</runprofile> | ||
</conf> | ||
</confs> | ||
</configurationDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> | ||
<code-assistance-data xmlns="http://www.netbeans.org/ns/make-project-private/1"> | ||
<code-model-enabled>true</code-model-enabled> | ||
</code-assistance-data> | ||
<data xmlns="http://www.netbeans.org/ns/make-project-private/1"> | ||
<activeConfTypeElem>0</activeConfTypeElem> | ||
<activeConfIndexElem>0</activeConfIndexElem> | ||
</data> | ||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> | ||
</project-private> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://www.netbeans.org/ns/project/1"> | ||
<type>org.netbeans.modules.cnd.makeproject</type> | ||
<configuration> | ||
<data xmlns="http://www.netbeans.org/ns/make-project/1"> | ||
<name>template_project</name> | ||
<c-extensions>c</c-extensions> | ||
<cpp-extensions/> | ||
<header-extensions>h</header-extensions> | ||
<sourceEncoding>UTF-8</sourceEncoding> | ||
<make-dep-projects/> | ||
<sourceRootList> | ||
<sourceRootElem>.</sourceRootElem> | ||
</sourceRootList> | ||
<confList> | ||
<confElem> | ||
<name>Default</name> | ||
<type>0</type> | ||
</confElem> | ||
</confList> | ||
</data> | ||
</configuration> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SRC_FILES=main.c | ||
|
||
all: main | ||
|
||
main: $(SRC_FILES) | ||
gcc -Wall -o $@ $(SRC_FILES) | ||
|
||
clean: | ||
rm -f main | ||
|
||
run: main | ||
# Running our main function from file main.c | ||
./main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <stdio.h> | ||
|
||
int main( int argc, const char* argv[] ) | ||
{ | ||
printf( "\nHello World\n" ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CHECK_CFLAGS=$(shell pkg-config --cflags check) | ||
CHECK_LDFLAGS=$(shell pkg-config --libs check) | ||
SRC_FILES=tmc-check.c | ||
|
||
all: test | ||
|
||
test: $(SRC_FILES) | ||
gcc $(CHECK_CFLAGS) -Wall -o $@ $(SRC_FILES) $(CHECK_LDFLAGS) | ||
|
||
clean: | ||
# rm -f test tmc_available_points.txt tmc_test_results.xml valgrind.log | ||
|
||
run: test | ||
# Printing available points | ||
./test --print-available-points | ||
# Running test. There should be one success and one failure. | ||
./test |
Oops, something went wrong.