1 #/***************************************************************************
3 # TextEditor.mcc - Textediting MUI Custom Class
4 # Copyright (C) 1997-2000 Allan Odgaard
5 # Copyright (C) 2005 by TextEditor.mcc Open Source Team
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
19 # $Id: Makefile.os3,v 1.5 2005/06/12 08:20:20 damato Exp $
21 #***************************************************************************/
25 STRIP = m68k-amigaos-strip
35 # Compiler/Linker flags
36 CPU = -m68020-60 -msoft-float
37 CDEFS = -D__NLV_VERDATE=\"`date +%d.%m.%Y`\" -D__NLV_VERDAYS="`expr \`date +%s\` / 86400 - 2922`"
39 OPTFLAGS = -O3 -fomit-frame-pointer -funroll-loops
40 DEBUG = -DDEBUG -g -O0
41 CFLAGS = -noixemul -I. -I../mcp -I../includes -c $(CPU) $(WARN) $(OPTFLAGS) $(DEBUG)
42 LDFLAGS = -noixemul -nostartfiles $(CPU)
43 LDLIBS = -lmui -ldebug
45 # CPU and DEBUG can be defined outside, defaults to above
46 # using e.g. "make DEBUG= CPU=-m68060" produces optimized non-debug 68060 version
48 # OPTFLAGS are disabled by DEBUG normally!
50 # ignored warnings are:
51 # none - because we want to compile with -Wall all the time
54 MCCTARGET = $(BINDIR)/TextEditor.mcc
55 TESTTARGET= $(BINDIR)/TextEditor-Test
57 MCCOBJS = $(OBJDIR)/library.o \
58 $(OBJDIR)/AllocBitMap.o \
59 $(OBJDIR)/AllocFunctions.o \
60 $(OBJDIR)/BlockOperators.o \
61 $(OBJDIR)/CaseConversion.o \
62 $(OBJDIR)/ColorOperators.o \
64 $(OBJDIR)/Dispatcher.o \
65 $(OBJDIR)/EditorStuff.o \
66 $(OBJDIR)/ExportHook.o \
67 $(OBJDIR)/ExportText.o \
68 $(OBJDIR)/GetSetAttrs.o \
69 $(OBJDIR)/HandleARexx.o \
70 $(OBJDIR)/HandleInput.o \
71 $(OBJDIR)/InitConfig.o \
72 $(OBJDIR)/ImportHook.o \
73 $(OBJDIR)/ImportText.o \
74 $(OBJDIR)/Keybindings.o \
76 $(OBJDIR)/MixedFunctions.o \
77 $(OBJDIR)/Navigation.o \
78 $(OBJDIR)/PrintLineWithStyles.o \
80 $(OBJDIR)/SpellChecker.o \
81 $(OBJDIR)/StyleOperators.o \
82 $(OBJDIR)/UndoFunctions.o
84 TESTOBJS= $(OBJDIR)/TextEditor-Test.o \
85 $(OBJDIR)/AllocBitMap.o \
86 $(OBJDIR)/AllocFunctions.o \
87 $(OBJDIR)/BlockOperators.o \
88 $(OBJDIR)/CaseConversion.o \
89 $(OBJDIR)/ColorOperators.o \
91 $(OBJDIR)/Dispatcher.o \
92 $(OBJDIR)/EditorStuff.o \
93 $(OBJDIR)/ExportHook.o \
94 $(OBJDIR)/ExportText.o \
95 $(OBJDIR)/GetSetAttrs.o \
96 $(OBJDIR)/HandleARexx.o \
97 $(OBJDIR)/HandleInput.o \
98 $(OBJDIR)/InitConfig.o \
99 $(OBJDIR)/ImportHook.o \
100 $(OBJDIR)/ImportText.o \
101 $(OBJDIR)/Keybindings.o \
102 $(OBJDIR)/Methods.o \
103 $(OBJDIR)/MixedFunctions.o \
104 $(OBJDIR)/Navigation.o \
105 $(OBJDIR)/PrintLineWithStyles.o \
107 $(OBJDIR)/SpellChecker.o \
108 $(OBJDIR)/StyleOperators.o \
109 $(OBJDIR)/UndoFunctions.o
113 all: $(BINDIR) $(OBJDIR) $(MCCTARGET) $(TESTTARGET)
115 # make the object directories
117 @printf '\033[33mGenerating $@ directory\033[0m\n'
120 # make the binary directories
122 @printf '\033[33mGenerating $@ directory\033[0m\n'
128 @printf '\033[32mCompiling $<\033[0m\n'
129 @$(CC) $(CFLAGS) $< -o $@ -DNO_INLINE_STDARG
133 $(MCCTARGET): $(MCCOBJS)
134 @printf '\033[32mLinking \033[1m$@\033[0m\n'
135 @$(CC) $(LDFLAGS) -o $@.debug $(MCCOBJS) $(LDLIBS)
136 @$(CC) $(LDFLAGS) -s -o $@ $(MCCOBJS) $(LDLIBS)
138 $(TESTTARGET): $(TESTOBJS)
139 @printf '\033[32mLinking \033[1m$@\033[0m\n'
140 @$(CC) -o $@.debug $(TESTOBJS) $(LDLIBS)
141 @$(CC) -s -o $@ $(TESTOBJS) $(LDLIBS)
143 $(OBJDIR)/library.o: library.c ../includes/mccheader.c \
144 TextEditor_mcc.h private.h rev.h
146 $(OBJDIR)/library.o: library.c ../includes/mccheader.c TextEditor_mcc.h \
153 -$(RM) $(MCCTARGET) $(MCCTARGET).debug $(TESTTARGET) $(TESTTARGET).debug $(MCCOBJS) $(TESTOBJS) $(M68KSTUBS)