Last change
on this file was
1,
checked in by mancausoft, 14 years ago
|
Added Library to read and write digital for arm9 EP9302
|
File size:
643 bytes
|
Rev | Line | |
---|
[1] | 1 | CC = gcc |
---|
| 2 | LIB_TARGET=libdigital.so.0.0.1 |
---|
| 3 | INCLUDE_FILES=digital.h |
---|
| 4 | |
---|
| 5 | all: $(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 | |
---|
| 12 | digital.o: digital.c |
---|
| 13 | $(CC) -c -O2 -s -fPIC digital.c |
---|
| 14 | clean: |
---|
| 15 | rm -rf *.o *.so.* *.so *.pyc |
---|
| 16 | |
---|
| 17 | install: $(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.