From af5ed8321f18fda2fc765b5a039bb17370e3b7d8 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 30 May 2021 18:01:10 +0200 Subject: compiles with ini.h :tada: --- makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 83107d1..b6b9831 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,17 @@ CC = gcc LD = gcc RM = rm -f -CFLAGS = -lcwalk +CFLAGS = -lcwalk -linih -SOURCES := $(wildcard *.c) -OBJECTS := $(patsubst %.c,%.o, $(SOURCES)) +OBJECTS := $(patsubst %.c,%.o, *.c) all: musicopy +%.o: %.c + $(CC) -static -c $< $(CFLAGS) + musicopy: $(OBJECTS) - $(CC) -static $(OBJECTS) $(CFLAGS) -o musicopy + $(CC) $(OBJECTS) $(CFLAGS) -o musicopy clean: $(RM) musicopy -- cgit v1.2.3