OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [getline/] [Makefile] - Diff between revs 8 and 251

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
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.