Česky
Kamil Dudka

Digital Watermarking (C++, Qt3, gnulib)

File detail

Name:DownloadMakefile [Download]
Location: kry2 > kry2-1.0pre1 > hamming-0.3
Size:1.0 KB
Last modification:2009-07-12 01:46

Source code

###########################################################################
# Makefile for hamming encode/decode programs
#
#   $Id: Makefile,v 1.2 2007/07/16 02:10:24 michael Exp $
#   $Log: Makefile,v $
#   Revision 1.2  2007/07/16 02:10:24  michael
#   Use -pedantic option when compiling.
#
#   Revision 1.1.1.1  2005/01/02 05:06:45  michael
#   Initial version
#
############################################################################
 
CC = gcc
LD = gcc
CFLAGS = -O3 -Wall -pedantic -ansi -c
LDFLAGS = -O3 -o
 
# libraries
LIBS = -L. -lhamming
 
# Treat NT and non-NT windows the same
ifeq ($(OS),Windows_NT)
	OS = Windows
endif
 
ifeq ($(OS),Windows)
	EXE = .exe
	DEL = del
else	#assume Linux/Unix
	EXE =
	DEL = rm
endif
 
all:		testall$(EXE)
 
testall$(EXE):	testall.o libhamming.a
		$(LD) $< $(LIBS) $(LDFLAGS) $@
 
testall.o:	testall.c hamming.h
		$(CC) $(CFLAGS) $<
 
libhamming.a:	hamming.o
		ar crv $@ $<
		ranlib $@
 
hamming.o:	hamming.c hamming.h
		$(CC) $(CFLAGS) $<
 
clean:
		$(DEL) *.o
		$(DEL) *.a
		$(DEL) testall$(EXE)