summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6bbed9ec625ca0228c8db78e598898f6684ed907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

CC ?= gcc
LD ?= gcc

CFLAGS ?= -Werror -Wall -g -DDEBUG
LDFLAGS ?= 

aports-cache-objs := aports-cache.o

%.o: %.c
	$(CC) $(CFLAGS) $(CFLAGS_$(notdir $@)) -c -o $@ $<

aports-cache: aports-cache.o main.o
	$(CC) $(LDFLAGS) -o $@ $(LIBS_$(notdir $@)) $^

clean:
	rm -f *.o aports-cache