2014-12-31 12:10:54 -05:00
|
|
|
CC = gcc
|
|
|
|
LDFLAGS := -linterface
|
|
|
|
CFLAGS := -c -Wall -Werror
|
|
|
|
INCLUDES := -I.
|
|
|
|
|
|
|
|
EXECUTABLE = \
|
2015-01-08 13:38:04 -05:00
|
|
|
write-memory \
|
2015-01-05 18:05:31 -05:00
|
|
|
read-memory \
|
2014-12-31 12:10:54 -05:00
|
|
|
test-cfg
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY : all
|
|
|
|
all : $(EXECUTABLE)
|
|
|
|
|
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
|
2015-01-08 13:38:04 -05:00
|
|
|
write-memory : write-memory.o
|
|
|
|
$(CC) $< -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
2015-01-05 18:05:31 -05:00
|
|
|
read-memory : read-memory.o
|
|
|
|
$(CC) $< -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
2014-12-31 12:10:54 -05:00
|
|
|
test-cfg : test-cfg.o
|
|
|
|
$(CC) $< -o $@ $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
clean :
|
|
|
|
rm -f *.o $(EXECUTABLE)
|