# first translate your model file with mod, like: 
../mod/mod ../samples/perc.model
# compilation of the mcsim executable can just be performed with:
gcc *.c -lm

# this produces a "a.out" executable