blob: 01ba3b882a8c48736b9b6c402d865b52efe3bf50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#############################################################################
# Makefile for building ../lib/libmd5.a
# Generated by tmake at 16:24, 2012/08/12
# Project: libmd5
# Template: lib
#############################################################################
####### Compiler, tools and options
CC = cc
CXX = c++
CFLAGS = -pipe -Wall -W -Wno-deprecated-declarations -Wno-invalid-source-encoding -g -fstack-protector
CXXFLAGS= -pipe -D__FreeBSD__=6 -DYY_TYPEDEF_YY_SIZE_T -Dyy_size_t=int -Wall -W -Wno-deprecated-declarations -Wno-invalid-source-encoding -g -fstack-protector
INCPATH =
AR = ar cq
RANLIB = ranlib
MOC = /usr/bin/moc
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = md5.h \
md5_loc.h
SOURCES = md5.c
OBJECTS = ../objects/md5.o
SRCMOC =
OBJMOC =
DIST =
TARGET = ../lib/libmd5.a
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(TARGET)
staticlib: $(TARGET)
$(TARGET): $(OBJECTS) $(OBJMOC)
-rm -f $(TARGET)
$(AR) $(TARGET) $(OBJECTS) $(OBJMOC)
ranlib $(TARGET)
moc: $(SRCMOC)
tmake:
tmake libmd5.pro
dist:
$(TAR) libmd5.tar libmd5.pro $(SOURCES) $(HEADERS) $(DIST)
$(GZIP) libmd5.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET)
-rm -f *~ core
####### Compile
../objects/md5.o: md5.c \
md5.h \
md5_loc.h
$(CC) -c $(CFLAGS) $(INCPATH) -o ../objects/md5.o md5.c
|