source: EP9302-digital/Makefile

Last change on this file was 1, checked in by mancausoft, 16 years ago

Added Library to read and write digital for arm9 EP9302

File size: 643 bytes
RevLine 
[1]1CC = gcc
2LIB_TARGET=libdigital.so.0.0.1
3INCLUDE_FILES=digital.h
4
5all: $(LIB_TARGET)
6
7$(LIB_TARGET): digital.o
8 $(CC) -shared -O2 -s -Wl,-soname,libdigital.so -o $(LIB_TARGET) digital.o
9 rm -f libdigital.so
10 ln -s $(LIB_TARGET) libdigital.so
11
12digital.o: digital.c
13 $(CC) -c -O2 -s -fPIC digital.c
14clean:
15 rm -rf *.o *.so.* *.so *.pyc
16
17install: $(LIB_TARGET)
18 (cd /usr/local/include; rm -f $(INCLUDE_FILES))
19 install --mode=644 --owner=root --group=root $(INCLUDE_FILES) /usr/local/include
20 rm -f /usr/local/lib/$(LIB_TARGET) /usr/local/lib/libdigital.so
21 install --mode=644 --owner=root --group=root $(LIB_TARGET) /usr/local/lib
22 ldconfig
23
24
Note: See TracBrowser for help on using the repository browser.