URL
https://opencores.org/ocsvn/eco32/eco32/trunk
[/] [eco32/] [trunk/] [sim/] [getline/] [Makefile] - Diff between revs 8 and 251
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 8 |
Rev 251 |
#
|
#
|
# Makefile for the getline library
|
# Makefile for the getline library
|
#
|
#
|
|
|
CC = gcc -m32
|
CC = gcc
|
CFLAGS = -O -DPOSIX
|
CFLAGS = -O -DPOSIX
|
LDFLAGS = -L.
|
LDFLAGS = -L.
|
LDLIBS = -lgetline
|
LDLIBS = -lgetline
|
|
|
.PHONY: all install clean
|
.PHONY: all install clean
|
|
|
all: libgetline.a testgl
|
all: libgetline.a testgl
|
|
|
install: libgetline.a testgl
|
install: libgetline.a testgl
|
|
|
testgl: libgetline.a testgl.o
|
testgl: libgetline.a testgl.o
|
$(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o $(LDLIBS)
|
$(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o $(LDLIBS)
|
|
|
libgetline.a: getline.o
|
libgetline.a: getline.o
|
ar cr libgetline.a getline.o
|
ar cr libgetline.a getline.o
|
|
|
%.o: %.c
|
%.o: %.c
|
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
clean:
|
clean:
|
rm -f *~ *.o *.a testgl
|
rm -f *~ *.o *.a testgl
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.