kopia lustrzana https://github.com/Hamlib/Hamlib
make, make install, and make clean work ok, using ./lib and ./include directories also.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@153 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
dbdf073c0c
commit
9da00458fc
|
@ -27,9 +27,12 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.7 2000-09-24 23:32:04 javabear Exp $
|
# $Id: Makefile,v 1.8 2000-09-24 23:49:28 javabear Exp $
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
BACKEND_INCLUDE = ../ft747/include
|
||||||
|
|
||||||
INSTALL_LIBDIR = ./lib/
|
INSTALL_LIBDIR = ./lib/
|
||||||
INSTALL_INCLUDEDIR = ./include/
|
INSTALL_INCLUDEDIR = ./include/
|
||||||
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../common
|
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../common
|
||||||
|
@ -44,18 +47,19 @@ LIB_OBJECTS = serial.o rig.o
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../include
|
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../include
|
||||||
OBJ = serial.o rig.o testrig.o
|
OBJ = serial.o rig.o #testrig.o
|
||||||
LDFLAG = -lm
|
LDFLAG = -lm
|
||||||
|
|
||||||
CFLAGS = -g -Wall -D__USE_FIXED_PROTOTYPES__ -pedantic -fPIC -g -Wall
|
CFLAGS = -g -Wall -D__USE_FIXED_PROTOTYPES__ -pedantic -fPIC -g -Wall
|
||||||
MAKEALL = $(OBJ)
|
MAKEALL = $(OBJ)
|
||||||
|
|
||||||
all: lib
|
all: hamlib
|
||||||
|
|
||||||
.PHONY: lib
|
.PHONY: hamlib
|
||||||
lib:
|
hamlib:
|
||||||
$(CC) $(CFLAGS) $(INCLUDE) -c $(LIB_SRC)
|
$(CC) $(CFLAGS) $(INCLUDE) -c $(LIB_SRC)
|
||||||
$(CC) -shared -Wl,-soname,$(LIB_SONAME) -o $(LIB_RELEASE) $(LIB_OBJECTS) -lc
|
$(CC) -shared -Wl,-soname,$(LIB_SONAME) -o $(LIB_RELEASE) $(LIB_OBJECTS) -lc
|
||||||
|
|
||||||
# install header and lib
|
# install header and lib
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
@ -83,10 +87,12 @@ rig.o: rig.c rig.h riglist.h
|
||||||
$(CC) $(CFLAGS) $(INCLUDE) -c rig.c
|
$(CC) $(CFLAGS) $(INCLUDE) -c rig.c
|
||||||
|
|
||||||
|
|
||||||
# clean up
|
# clean up local,lib and include
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make cleanlocal
|
make cleanlocal
|
||||||
|
make cleanlib
|
||||||
|
make cleaninclude
|
||||||
|
|
||||||
# clean up local directory
|
# clean up local directory
|
||||||
|
|
||||||
|
@ -95,12 +101,16 @@ cleanlocal:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
rm -f $(LIB_RELEASE)
|
rm -f $(LIB_RELEASE)
|
||||||
|
|
||||||
|
# clean up local lib directory
|
||||||
|
|
||||||
# test making a shared lib ( for the frontend -- FS
|
.PHONY: cleanlib
|
||||||
# still lots to cleanup.
|
cleanlib:
|
||||||
|
cd $(INSTALL_LIBDIR); rm -f $(LIB_NAME)*
|
||||||
|
|
||||||
.PHONY: hamlib
|
|
||||||
hamlib:
|
# clean up local include directory
|
||||||
$(CC) $(CFLAGS) $(INCLUDE) -c $(LIB_SRC)
|
|
||||||
$(CC) -shared -Wl,-soname,$(LIB_SONAME) -o $(LIB_RELEASE) $(LIB_OBJECTS) -lc
|
.PHONY: cleaninclude
|
||||||
|
cleaninclude:
|
||||||
|
cd $(INSTALL_INCLUDEDIR); rm -f $(LIB_HEADER)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue