44 lines
784 B
Makefile
44 lines
784 B
Makefile
# Makefile to build the SDL library
|
|
|
|
INCLUDE = -I./include -I/home/sylvain/.local/share/giteapc/Lephenixnoir/sh-elf-gcc/lib/gcc/sh3eb-elf/11.1.0/include/openlibm/
|
|
CFLAGS = -O2 $(INCLUDE) -lm -m4-nofpu -mb -ffreestanding -nostdlib -Wa,--dsp
|
|
AR = sh-elf-gcc-ar
|
|
RANLIB = sh-elf-gcc-ranlib
|
|
CC = sh-elf-gcc
|
|
|
|
CONFIG_H =
|
|
TARGET = libczlib.a
|
|
SOURCES = \
|
|
adler32.c \
|
|
compress.c \
|
|
crc32.c \
|
|
deflate.c \
|
|
gzclose.c \
|
|
gzlib.c \
|
|
gzread.c \
|
|
gzwrite.c \
|
|
infback.c \
|
|
inffast.c \
|
|
inflate.c \
|
|
inftrees.c \
|
|
trees.c \
|
|
uncompr.c \
|
|
zutil.c
|
|
|
|
|
|
OBJECTS = $(SOURCES:.c=.o)
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
#cp $(CONFIG_H).default $(CONFIG_H)
|
|
$(AR) cr $@ $^
|
|
$(RANLIB) $@
|
|
#$(STRIP) --strip-unneeded $@
|
|
|
|
.c.o:
|
|
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(TARGET)
|