aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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