URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [trunk/] [sim/] [getline/] [Makefile] - Rev 300
Go to most recent revision | Compare with Previous | Blame | View Log
#
# Makefile for the getline library
#
CC = gcc
CFLAGS = -O -DPOSIX
LDFLAGS = -L.
LDLIBS = -lgetline
.PHONY: all install clean
all: libgetline.a testgl
install: libgetline.a testgl
testgl: libgetline.a testgl.o
$(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o $(LDLIBS)
libgetline.a: getline.o
ar cr libgetline.a getline.o
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f *~ *.o *.a testgl
Go to most recent revision | Compare with Previous | Blame | View Log