Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (16 sloc) 0.415 kB
PROGRAM = usb_termometer
PROGRAM_FILES = usb_termometer.c
CC = gcc
CFLAGS += -g $(shell pkg-config --cflags libhid)
LDFLAGS += -g
LIBS += $(shell pkg-config --libs libhid)
SOURCES = $(wildcard *.c)
OBJS = $(SOURCES:.c=.o)
ALL: $(PROGRAM)
$(PROGRAM): $(OBJS)
$(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) -o $(PROGRAM) $(LIBS)
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
.PHONY clean:
@rm -rf $(PROGRAM)
@rm -rf $(OBJS)
Jump to Line
Something went wrong with that request. Please try again.