All pastes #620092 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-15 06:38 UTC
rendered paste body
# Makefile for liftp.

# Operating System (SUN/SGI/LINUX/OS2):
OPSYS = LINUX

# Default serial port:
# ("/dev/ttya" for Sun386i, "/dev/cua0" for Linux, "/dev/ttyd1" or
# "/dev/ttyd2" for an SGI Indy)
DEF_PORT = "/dev/ttyS0"

# Default serial port speed:
DEF_SPEED = 9600

# C compiler:
CC = gcc

# C flags:
CFLAGS = -O2 -D$(OPSYS) '-DDEFAULT_PORT=$(DEF_PORT)' -DDEFAULT_SPEED=$(DEF_SPEED)

# Object files:
OBJ = liftp.o ogtty.o reply.o transfer.o

# Make main version:
all: liftp

liftp: $(OBJ)
	$(CC) $(CFLAGS) -o liftp $(OBJ)

# Header file dependencies:
liftp.o: reply.h transfer.h ogtty.h
transfer.o: reply.h

# Make clean (remove object files and core dumps)
clean:
	rm -f *.o core