50 lines
726 B
Text
50 lines
726 B
Text
|
#
|
||
|
# Makefile for convert (SunOS version)
|
||
|
#
|
||
|
|
||
|
SRC = .
|
||
|
MISCSRC=$(SRC)/../Misc
|
||
|
MISCBIN=$(MISCSRC)
|
||
|
|
||
|
CC = gcc
|
||
|
GCCWARNINGS = -Wreturn-type -Wunused -Wswitch -Wcomment -W -Wformat \
|
||
|
-Wuninitialized
|
||
|
CFLAGS = -g -ansi -pedantic $(GCCWARNINGS) -I$(MISCSRC)
|
||
|
# -static is only necessary for gcc 2.1
|
||
|
LDFLAGS = -static
|
||
|
LIBS = $(MISCBIN)/misc.a
|
||
|
|
||
|
#
|
||
|
# Programs made by this makefile
|
||
|
#
|
||
|
PROGS = convert
|
||
|
|
||
|
all : $(PROGS)
|
||
|
|
||
|
#
|
||
|
# Where the wild things are
|
||
|
#
|
||
|
SRC = ..
|
||
|
|
||
|
OBJS = \
|
||
|
list.o \
|
||
|
main.o \
|
||
|
dapIO.o \
|
||
|
dapDB.o \
|
||
|
bapIO.o \
|
||
|
bapDB.o \
|
||
|
process.o \
|
||
|
flat_sd.o
|
||
|
|
||
|
convert: $(OBJS)
|
||
|
$(CC) $(CFLAGS) -o convert $(OBJS) $(LIBS) $(LDFLAGS)
|
||
|
#
|
||
|
# Special dependencies
|
||
|
#
|
||
|
%.o:$(SRC)/%.c
|
||
|
$(CC) $(CFLAGS) -c $<
|
||
|
|
||
|
|
||
|
clean :
|
||
|
/bin/rm -f $(PROGS) $(OBJS) *~
|