aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 05da12fc62ba00082ba1969034dca53b07d5a64c (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 -lcrypto

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