Source

libs / src / ports / deamon / Makefile

Full commit
CFLAGS = -c -Wall -D__SERVER__ -I. -I.. -I../.. -I../../include

OBJS = main handler timer 
OBJS := $(addsuffix .o,$(OBJS))

EXE = mpd

.PHONY: $(EXE) subdir-clean

$(EXE): $(OBJS)
	$(CC) $^ -lpthread -lrt -o $@

clean:
	-rm $(OBJS) $(EXE)

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