2000-07-25 01:01:00 +00:00
|
|
|
# hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Simple Make file for common parts.
|
|
|
|
#
|
|
|
|
#
|
2000-09-23 02:26:27 +00:00
|
|
|
# $Id: Makefile,v 1.4 2000-09-23 02:26:27 javabear Exp $
|
2000-07-25 01:01:00 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
INCLUDE = -I/usr/include -I/usr/local/include -I. -I../include
|
2000-09-23 02:26:27 +00:00
|
|
|
OBJ = serial.o rig.o testrig.o
|
2000-07-25 01:01:00 +00:00
|
|
|
LDFLAG = -lm
|
2000-09-16 01:21:07 +00:00
|
|
|
# -ansi would break usleep, CRTSCTS, etc.
|
|
|
|
CFLAGS = -g -Wall -D__USE_FIXED_PROTOTYPES__ -pedantic # -ansi -O2
|
2000-09-23 02:26:27 +00:00
|
|
|
MAKEALL = $(OBJ)
|
2000-07-25 01:01:00 +00:00
|
|
|
|
|
|
|
all: $(MAKEALL)
|
|
|
|
|
|
|
|
serial.o: serial.c serial.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDE) -c serial.c
|
|
|
|
|
2000-09-16 01:21:07 +00:00
|
|
|
rig.o: rig.c rig.h riglist.h
|
2000-09-14 00:52:27 +00:00
|
|
|
$(CC) $(CFLAGS) $(INCLUDE) -c rig.c
|
|
|
|
|
2000-09-23 02:26:27 +00:00
|
|
|
testrig.o: testrig.c
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDE) -c testrig.c
|
2000-09-14 00:52:27 +00:00
|
|
|
|
2000-07-25 01:01:00 +00:00
|
|
|
# clean up
|
|
|
|
|
|
|
|
clean:
|
|
|
|
make cleanlocal
|
|
|
|
|
|
|
|
# clean up local directory
|
|
|
|
|
|
|
|
.PHONY: cleanlocal
|
|
|
|
cleanlocal:
|
2000-09-23 02:26:27 +00:00
|
|
|
rm -f *.o
|
2000-07-25 01:01:00 +00:00
|
|
|
|
|
|
|
|