--- /dev/null
+# the plaform
+PLATFORM = MARTE_OS
+# the path of the platform
+PLATFORM_PATH = $(HOME)/marte
+# the path for exporting programs linux_arch -> ./
+EXPORT_PATH = $(HOME)/export
+
+# the gcc to use
+CC = mgcc
+# the path to the FRSH directory.
+FRSH_PATH = $(HOME)/frescor/frsh
+# the path to the FOSA directory.
+FOSA_PATH = $(HOME)/frescor/fosa
+# the path to the FNA directory.
+FNA_PATH = $(HOME)/frescor/fna
+# the compilation flags
+CFLAGS = -Wall -g -D$(PLATFORM) -I$(FNA_PATH)/include -I$(FRSH_PATH)/include
+# the library flags
+LDFLAGS = -L$(FNA_PATH)/lib -lfna
\ No newline at end of file
--- /dev/null
+.PHONY: none clean
+
+none:
+ @exec echo -e "\nPlease introduce a target, i.e: 'make test_dtm_xxx.exe'";
+
+%.exe: %.c libfna.a $(FRSH_PATH)/lib/libfrsh.a
+ @exec echo -e "\n>> Building $@: ";
+ @if [ -f $< ]; \
+ then \
+ $(CC) $(CFLAGS) $< $(LDFLAGS); \
+ mv $(EXPORT_PATH)/mprogram $@ &> /dev/null; \
+ fi; # -o $@ (fix marte mgcc)
+ @exec echo ">> End Building $@";
+
+libfna.a:
+ @exec echo -e "\n>> Compiling FNA library (lib/libfna.a):";
+ @make -C $(FNA_PATH)/src all
+ @make -C $(FNA_PATH)/src_rtep librtepfna.a
+ @ar -rc libfna.a $(FNA_PATH)/src/*.o
+ @mv libfna.a $(FNA_PATH)/lib/
+ @exec echo ">> End Compiling FNA library (lib/libfna.a)"
+
+clean:
+ @exec echo -e "\n>> Cleaning... ";
+ @find \( -name '*.[oa]' -or -name '*~*' -or -name 'lib*.a' \
+ -or -name '*.exe' -or -name 'mprogram' -or -name 'a.out' \) -print -delete
+ @exec echo ">> End Cleaning"
\ No newline at end of file