diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-05-30 18:01:10 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-05-30 18:01:10 +0200 |
commit | af5ed8321f18fda2fc765b5a039bb17370e3b7d8 (patch) | |
tree | b9827d017269f92275ba7bc627217f309d44dadd /makefile | |
parent | bb6ba184d0091d77a0d4753b4bb62d543a20468a (diff) |
compiles with ini.h :tada:
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |