evga-icx/Makefile

29 lines
381 B
Makefile
Raw Permalink Normal View History

2025-01-19 23:27:43 -08:00
.PHONY : clean debug
OBJS = evga-icx.o evga-card.o icx3.o
2025-01-19 23:27:43 -08:00
LDLIBS = -li2c
CFLAGS = -MD
2025-01-19 23:27:43 -08:00
ifdef USE_NVML
LDLIBS += -lnvidia-ml
CFLAGS += -DUSE_NVML
OBJS += nvidia-sensors.o
endif
ifdef USE_LIBPCI
LDLIBS += -lpci
CFLAGS += -DUSE_LIBPCI
OBJS += gddr6.o
endif
evga-icx : $(OBJS)
2025-01-19 23:27:43 -08:00
debug : CFLAGS += -g -O0
debug : evga-icx
clean :
rm evga-icx
rm *.o
rm *.d
-include $(OBJS:.o=.d)