1234567891011121314151617181920 |
- ERR = $(shell which gcc; echo $$?)
- ifeq "$(ERR)" "0"
- CC = gcc
- else
- CC = clang
- endif
- CFLAGS = -O2 -march=native -pipe -Wall -Wextra
- all: 1-rgb565 2-rle
- 1-rgb565: 1-rgb565.c
- $(CC) $(CFLAGS) -o 1-rgb565 1-rgb565.c
- 2-rle: 2-rle.c
- $(CC) $(CFLAGS) -o 2-rle 2-rle.c
- clean:
- rm 1-rgb565 2-rle
|