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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [getline/] [Makefile] - Blame information for rev 138

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 hellwig
#
2
# Makefile for the getline library
3
#
4
 
5
CC      = gcc -m32
6
CFLAGS  = -O -DPOSIX
7
LDFLAGS = -L.
8
LDLIBS  = -lgetline
9
 
10
.PHONY:         all install clean
11
 
12
all:            libgetline.a testgl
13
 
14
install:        libgetline.a testgl
15
 
16
testgl:         libgetline.a testgl.o
17
                $(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o $(LDLIBS)
18
 
19
libgetline.a:   getline.o
20
                ar cr libgetline.a getline.o
21
 
22
%.o:            %.c
23
                $(CC) $(CFLAGS) -o $@ -c $<
24
 
25
clean:
26
                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.