Blame view

Makefile 296 Bytes
b91288ec   henyxia   Opening files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  CC=gcc
  CC_FLAGS=-c -Wall -Werror -std=gnu99 -g
  CC_LIBS=
  INCLUDES=
  
  SOURCES=main.c
  OBJECTS=$(SOURCES:.c=.o)
  OUTPUT=bmp2rgb565
  
  all: $(SOURCES) $(OUTPUT)
  
  $(OUTPUT): $(OBJECTS)
  	$(CC) $(OBJECTS) $(CC_LIBS) -o $@
  
  %.o: %.c
  	$(CC) $(INCLUDES) $(CC_FLAGS) $< -o $@
  
  clear:
  	rm -f $(OUTPUT) $(OBJECTS)