You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
313 B
Makefile

CC = gcc
CFLAGS = -g -Wall # -O2
INCLUDES = -I.
OBJECTS = elf2img.o mzip.o
COMPILE = $(CC) $(CFLAGS) $(INCLUDES)
LDFLAGS = -lzip
IMAGENAME = elf2img
all: elf2img
elf2img: $(OBJECTS)
$(COMPILE) $(OBJECTS) $(LDFLAGS) -o $(IMAGENAME)
.c.o:
$(COMPILE) -c $<
clean:
-rm -rf $(IMAGENAME)
-rm -rf $(OBJECTS)