.PHONY : clean debug

OBJS = evga-icx.o evga-card.o icx3.o
LDLIBS = -li2c
CFLAGS = -MD

ifdef USE_NVML
LDLIBS += -lnvidia-ml
CFLAGS += -DUSE_NVML
OBJS += nvidia-sensors.o
endif

evga-icx : $(OBJS)

debug : CFLAGS += -g -O0
debug : evga-icx

clean :
	rm evga-icx
	rm *.o
	rm *.d
	
-include $(OBJS:.o=.d)