Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 511 Bytes
# Variables:
PROGRAM = sym/SerialKDPProxy
OBJECTS = obj/SerialKDPProxy.o obj/kdp_serial.o
CFLAGS = -Wall
# Phony rules:
all: dirs $(PROGRAM)
clean:
rm -f $(PROGRAM) $(OBJECTS)
# Programs to build:
$(PROGRAM): $(OBJECTS)
$(CC) -g -D_BSD_SOURCE -o $(PROGRAM) $(OBJECTS)
# Objects to build:
obj/SerialKDPProxy.o: src/SerialKDPProxy.c
$(COMPILE.c) -g -D_BSD_SOURCE $(OUTPUT_OPTION) $<
obj/kdp_serial.o: src/kdp_serial.c
$(COMPILE.c) -g -D_BSD_SOURCE $(OUTPUT_OPTION) $<
.PHONY:
dirs:
mkdir -p obj sym