aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: b6b98312960b6fd7f497441820792b5549decb75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC = gcc
LD = gcc
RM = rm -f
CFLAGS = -lcwalk -linih

OBJECTS := $(patsubst %.c,%.o, *.c)

all: musicopy

%.o: %.c
	$(CC) -static -c $< $(CFLAGS)

musicopy: $(OBJECTS)
	$(CC) $(OBJECTS) $(CFLAGS) -o musicopy

clean:
	$(RM) musicopy

distclean: clean
	$(RM) *.o