1 # Experimental makefile for Miff-Unix
4 -I..
/..
/..
/..
/..
/shared
/library
/sharedCompression
/include/public \
5 -I..
/..
/..
/..
/..
/shared
/library
/sharedDebug
/include/public \
6 -I..
/..
/..
/..
/..
/shared
/library
/sharedFile
/include/public \
7 -I..
/..
/..
/..
/..
/shared
/library
/sharedFoundation
/include/public \
8 -I..
/..
/..
/..
/..
/shared
/library
/sharedFoundationTypes
/include/public \
9 -I..
/..
/..
/..
/..
/shared
/library
/sharedMemoryManager
/include/public \
10 -I..
/..
/..
/..
/..
/shared
/library
/sharedThread
/include/public \
11 -I..
/..
/..
/..
/..
/..
/external
/3rd
/library
/stlport453
/stlport \
12 -I..
/..
/..
/..
/..
/..
/external
/ours
/library
/fileInterface
/include/public
14 GPP_FLAGS
= -g
-Wall
-Wno-unused
-Wno-unknown-pragmas
-Werror
-Wno-ctor-dtor-privacy
-D_DEBUG
-D__STL_NO_BAD_ALLOC
-DLINUX
$(INCLUDE_DIRS
) # Always builds with debugging info
15 GCC_FLAGS
= -w
#no warnings for code generated by yacc -- it's not our fault
18 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedCompression
/debug
/libsharedCompression_d.a \
19 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedDebug
/debug
/libsharedDebug_d.a \
20 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedFile
/debug
/libsharedFile_d.a \
21 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedFoundation
/debug
/libsharedFoundation_d.a \
22 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedMath
/debug
/libsharedMath_d.a \
23 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedMemoryManager
/debug
/libsharedMemoryManager_d.a \
24 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedRandom
/debug
/libsharedRandom_d.a \
25 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedSynchronization
/debug
/libsharedSynchronization_d.a \
26 ..
/..
/..
/..
/..
/..
/compile
/linux
/sharedThread
/debug
/libsharedThread_d.a \
27 ..
/..
/..
/..
/..
/..
/external
/3rd
/library
/stlport453
/lib
/libstlport_gcc.a \
28 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/fileInterface
/build
/linux
/output
/debug
/libfileInterface.a \
29 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/archive
/build
/linux
/output
/debug
/libarchive.a \
30 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/unicode
/compile
/linux
/Debug
/libunicode.a \
31 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/unicodeArchive
/build
/linux
/output
/debug
/libunicodeArchive.a \
32 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/localization
/compile
/linux
/Debug
/libLocalization.a \
33 ..
/..
/..
/..
/..
/..
/external
/ours
/library
/localizationArchive
/compile
/linux
/Debug
/libLocalizationArchive.a \
37 SRCDIR
= ..
/..
/src
/linux
38 OBJDIR
= ..
/..
/src
/linux
39 OBJS
= $(addprefix $(OBJDIR
)/, lex_yy.o parser.o miff.o InputFileHandler.o OutputFileHandler.o
)
42 g
++ $(OBJS
) $(LIBS
) -lpthread
-g
-o miff
44 $(OBJDIR
)/lex_yy.o
: $(SRCDIR
)/lex_yy.c
$(SRCDIR
)/parser.h
45 gcc
$(GCC_FLAGS
) $(SRCDIR
)/lex_yy.c
-c
-g
-o
$(OBJDIR
)/lex_yy.o
47 $(OBJDIR
)/parser.o
: $(SRCDIR
)/parser.c
$(SRCDIR
)/parser.h
48 gcc
$(GCC_FLAGS
) $(SRCDIR
)/parser.c
-c
-g
-o
$(OBJDIR
)/parser.o
50 $(OBJDIR
)/miff.o
: $(SRCDIR
)/miff.
cpp
51 g
++ $(GPP_FLAGS
) $(SRCDIR
)/miff.
cpp -c
-g
-o
$(OBJDIR
)/miff.o
53 $(OBJDIR
)/InputFileHandler.o
: $(SRCDIR
)/InputFileHandler.
cpp
54 g
++ $(GPP_FLAGS
) $(SRCDIR
)/InputFileHandler.
cpp -c
-g
-o
$(OBJDIR
)/InputFileHandler.o
56 $(OBJDIR
)/OutputFileHandler.o
: $(SRCDIR
)/OutputFileHandler.
cpp
57 g
++ $(GPP_FLAGS
) $(SRCDIR
)/OutputFileHandler.
cpp -c
-g
-o
$(OBJDIR
)/OutputFileHandler.o
59 $(SRCDIR
)/lex_yy.c
: $(SRCDIR
)/parser.
lex
60 flex
-w
-o
$(SRCDIR
)/lex_yy.c
$(SRCDIR
)/parser.
lex
62 $(SRCDIR
)/parser.c
$(SRCDIR
)/parser.h
: $(SRCDIR
)/parser.yac
63 bison
-d
-o
$(SRCDIR
)/parser.c
$(SRCDIR
)/parser.yac
66 rm -f
$(OBJS
) $(SRCDIR
)/parser.c
$(SRCDIR
)/parser.h
$(SRCDIR
)/lex_yy.c .depend
71 @echo Generating dependencies for miff
73 @g
++ -MM
$(GPP_FLAGS
) $(INCLUDE_DIRS
) $(SRCDIR
)/miff.
cpp -c
-g
>> .depend
74 @g
++ -MM
$(GPP_FLAGS
) $(INCLUDE_DIRS
) $(SRCDIR
)/InputFileHandler.
cpp -c
-g
>> .depend
75 @g
++ -MM
$(GPP_FLAGS
) $(INCLUDE_DIRS
) $(SRCDIR
)/OutputFileHandler.
cpp -c
-g
>> .depend