39 lines
830 B
Makefile
39 lines
830 B
Makefile
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 -lcPNG -lczlib -lSDL_prizm -Wa,--dsp -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XCF -DLOAD_BMP -DLOAD_PNG
|
|
AR = sh-elf-gcc-ar
|
|
RANLIB = sh-elf-gcc-ranlib
|
|
CC = sh-elf-gcc
|
|
|
|
CONFIG_H =
|
|
TARGET = libSDL_image_prizm.a
|
|
SOURCES = \
|
|
IMG.c \
|
|
IMG_bmp.c \
|
|
IMG_gif.c \
|
|
IMG_jpg.c \
|
|
IMG_lbm.c \
|
|
IMG_pcx.c \
|
|
IMG_png.c \
|
|
IMG_pnm.c \
|
|
IMG_tga.c \
|
|
IMG_tif.c \
|
|
IMG_webp.c \
|
|
IMG_xcf.c \
|
|
IMG_xpm.c \
|
|
IMG_xv.c
|
|
|
|
OBJECTS = $(SOURCES:.c=.o)
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
#cp $(CONFIG_H).default $(CONFIG_H)
|
|
$(AR) cr $@ $^
|
|
$(RANLIB) $@
|
|
|
|
.c.o:
|
|
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(TARGET)
|