aboutsummaryrefslogtreecommitdiffstats
path: root/codi/Makefile
blob: 0b8135c50f2e826a1b0114afbc721023c9d4fb79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS=-g -I. -I../
LDFLAGS=-lsqlite3 -lm -ljansson -lcurl -lpthread
DEPS = ../globals.h ../utils.h codi_api.h codi_db.h codi_launcher.h codi_list.h
OBJ = codi.o codi_db.o codi_list.o codi_launcher.o codi_api.o ../utils.o ../globals.o

all: codi

debug: DFLAGS = -DDBG
debug: clean codi

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS) $(DFLAGS)

codi: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)

.PHONY: clean
clean:
	rm -rf $(OBJ) codi