aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-05-30 18:01:10 +0200
committerlonkaars <l.leblansch@gmail.com>2021-05-30 18:01:10 +0200
commitaf5ed8321f18fda2fc765b5a039bb17370e3b7d8 (patch)
treeb9827d017269f92275ba7bc627217f309d44dadd /makefile
parentbb6ba184d0091d77a0d4753b4bb62d543a20468a (diff)
compiles with ini.h :tada:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 6 insertions, 4 deletions
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