From cbeff523d3c01471fcddfbf713b5d8d9e36dc1a9 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 30 May 2023 23:32:52 +0100 Subject: pngpal tool and first stab at embedding data on the EXE WIP; the embedded data has an "environ" symbol that will cause issues when we embed more than one piece of data. --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 94b83eb..a53c697 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,7 +4,7 @@ CFLAGS := -I. -c -Wall -pedantic -O2 -march=i386 LDFLAGS := -s SRCS := $(wildcard *.c) -OBJS := $(SRCS:.c=.o) +OBJS := $(SRCS:.c=.o) palette.o all: $(BIN) @@ -14,6 +14,9 @@ $(BIN): $(OBJS) .c.o: $(CC) $(CFLAGS) $< -o $@ +palette.o: ../data/sprites.png + ../tools/pngpal.py $< $@ + clean: rm -f $(BIN) *.o Makefile.deps -- cgit v1.2.3