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
312 B
Makefile

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