Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 583 Bytes
CC_OPTS = -Wall -Werror
CCS += $(CC_OPTS)
all: bin/rgb565tobmp bin/rgb565toppm bin/bmptorgb565
clean: rm bin/ -rf
bin/rgb565tobmp: src/rgb565tobmp.c bin
@$(CCS) -o bin/rgb565tobmp -lbmp src/rgb565tobmp.c >/dev/null 2>/dev/null || \
echo ""; echo "#### rgb565tobmp requires libbmp from code.google.com. Skipping... ####"; echo ""
bin/rgb565toppm: src/rgb565toppm.c bin
@$(CCS) -o bin/rgb565toppm src/rgb565toppm.c && echo "Built rgb565toppm."
bin/bmptorgb565: src/bmptorgb565.c bin
@$(CC) -o bin/bmptorgb565 src/bmptorgb565.c && echo "Built bmptorgb565."
bin:
@mkdir bin
Something went wrong with that request. Please try again.