2) Linux » History » Version 1
Version 1/7
-
Next » -
Current version
krufter_multiclet, 07/08/2013 06:26 PM
2) Linux¶
Страница в разработке.
Пример создания makefile:
PATH_TO_MULTICLET_INC = /usr/local/include/Multiclet/MCp0411100101/ PATH_TO_MULTICLET_LIB = /usr/local/lib/Multiclet/MCp0411100101/ image = image.bin objects = sin_cos_example.o load: $(image) mc-ploader $(image) $(image): $(objects) mc-lcc -target=mcp -Wl-L$(PATH_TO_MULTICLET_LIB) -Wl-lmath -Wl-M -o $(image) $(PATH_TO_MULTICLET_LIB)/crt0.o $(objects) rm *.o sin_cos_example.o: sin_cos_example.c mc-lcc -target=mcp -c -Wp-I$(PATH_TO_MULTICLET_INC) -Wa--arch=MCp0411100101 -o sin_cos_example.o sin_cos_example.c clean: rm -rf *.o $(image)