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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [drivers/] [Makefile] - Blame information for rev 26

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

Line No. Rev Author Line
1 3 jlechner
LIB=libscartsdrivers.a
2
 
3
CC = scarts32-gcc
4
INCLUDE_DIR = src/include
5
CFLAGS = -I$(INCLUDE_DIR) -Wall -O0 -c
6
 
7
SRC = src/dis7seg/dis7seg.c \
8
  src/key_matrix/key_matrix.c \
9
  src/vgatext/vgatext.c \
10
  src/counter/counter.c
11
 
12
OBJ = $(SRC:%.c=%.o)
13
 
14
PREFIX = /opt/scarts_toolchain
15
INSTALL_INCLUDE_DIR = scarts32/include/drivers
16
INSTALL_LIB_DIR = scarts32/lib
17
 
18
 
19
all: $(LIB)
20
 
21
$(LIB): $(OBJ)
22
        ar rcs $(LIB) $(OBJ)
23
 
24
%.o: %.c
25
        $(CC) $(CFLAGS) -o $@ $<
26
 
27
install:
28
        install -m 644 -D $(LIB) $(PREFIX)/$(INSTALL_LIB_DIR)/$(LIB)
29
        install -d $(PREFIX)/$(INSTALL_INCLUDE_DIR)
30
        install -m 644 $(INCLUDE_DIR)/* $(PREFIX)/$(INSTALL_INCLUDE_DIR)
31
 
32
.PHONY: clean
33
clean:
34
        rm -rf $(LIB) $(OBJ)
35
 
36
 

powered by: WebSVN 2.1.0

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