Commit 5360b8d1 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Makefile recreated from fragments

Exported headers moved to 'h' directory.

Version 0.06. Tagged as 'DDTLib-0_06'
parent 4455e9ea
Dir <Obey$Dir>
WimpSlot 2048k
amu THROWBACK=-throwback all
| Copyright RISC OS Open Limited.
|
| This file is part of DDTLib.
|
| Wild is free software: you can redistribute it and/or modify it under
| the terms of the GNU Lesser General Public License as published by the
| Free Software Foundation, either version 3 of the License, or (at your
| option) any later version.
|
| Wild is distributed in the hope that it will be useful, but WITHOUT
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
| or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
| Public License for more details.
|
| You should have received a copy of the GNU Lesser General Public
| License along with DDTLib. If not, see <http://www.gnu.org/licenses/>.
|
Dir <Obey$Dir>
WimpSlot 2048k
amu_machine clean
stripdepnd
Dir <Obey$Dir>
WimpSlot 2048k
amu THROWBACK=-throwback debug
| Copyright RISC OS Open Limited.
|
| This file is part of DDTLib.
|
| Wild is free software: you can redistribute it and/or modify it under
| the terms of the GNU Lesser General Public License as published by the
| Free Software Foundation, either version 3 of the License, or (at your
| option) any later version.
|
| Wild is distributed in the hope that it will be useful, but WITHOUT
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
| or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
| Public License for more details.
|
| You should have received a copy of the GNU Lesser General Public
| License along with DDTLib. If not, see <http://www.gnu.org/licenses/>.
|
Dir <Obey$Dir>
amu PHASE=hdrs export
amu PHASE=libs export
amu_machine export_hdrs THROWBACK=-throwback
amu_machine export_libs THROWBACK=-throwback
Dir <Obey$Dir>
amu install INSTDIR=<Install$Dir>
s/** gitlab-language=armasm linguist-language=armasm linguist-detectable=true
c/** gitlab-language=c linguist-language=c linguist-detectable=true
h/** gitlab-language=c linguist-language=c linguist-detectable=true
**/h/** gitlab-language=c linguist-language=c linguist-detectable=true
# File: Makefile
# Purpose: Makefile for DDTLib
# Author: Ben Laughton
#
# History:
#
# 2000-04-10: BAL
# Created.
# ------------------------------------------------------------------------------
# Paths
#
EXP_DIR = <Lib$Dir>.DDTLib
LIBDIR = <Lib$Dir>
# ------------------------------------------------------------------------------
# Generic options
#
MKDIR = mkdir -p
AS = objasm
CC = $(MemCheckCC) cc
C++ = c++
CMHG = cmhg
CP = copy
LD = link
RM = remove
WIPE = x wipe
CD = dir
CHMOD = access
TOUCH = create
DATA2AOF = datatoaof
MODSQZ = modsqz
LB = libfile
# ------------------------------------------------------------------------------
# Flags
#
AFLAGS = -depend !Depend $(THROWBACK) $(EXTRA_A_FLAGS) -stamp -quit
CCFLAGS = -depend !Depend $(THROWBACK) $(INCLUDES) $(DFLAGS) -c -Wsp -ffah
LDFLAGS = -aof
CPFLAGS = ~cfr~v
WFLAGS = ~c~vr
LBFLAGS = -c
CHMODFLAGS = RW/r
DFLAGS = $(EXTRA_C_FLAGS)
INCLUDES = -IC:,TCPIPLibs:
# ------------------------------------------------------------------------------
# Program specific options
#
COMPONENT = DDTLib
TARGET = l.DDTLib$(LIBSUFFIX)
EXPORTS = $(EXP_C_H).$(COMPONENT)
OBJS =\
$(EXT).AIFHeader\
$(EXT).DDT\
$(EXT).DDT2\
$(EXT).GetProc\
$(EXT).NrSymb\
$(EXT).Print1\
$(EXT).SectFile\
$(EXT).SrcPos\
$(EXT).ThrowBack
# ------------------------------------------------------------------------------
# Rule patterns
#
.SUFFIXES: .o .z .od .odz .i .h .s .c
.c.i:; $(CC) $(CCFLAGS) -C -E $< >> $@
.c.o:; $(CC) $(CCFLAGS) -o $@ $<
.c.od:; $(CC) $(CCFLAGS) -fn -g -o $@ $<
.c.z:; $(CC) $(CCFLAGS) -DDesk__MODULE_CLIENT -zM -o $@ $<
.c.odz:; $(CC) $(CCFLAGS) -DDesk__MODULE_CLIENT -zM -fn -g -o $@ $<
.s.i:; @echo $@
.s.o:; $(AS) $(AFLAGS) -pd "Desk_AS_EMBED_FNNAMES SETA 0" $< $@
.s.z:; $(AS) $(AFLAGS) -pd "Desk_AS_EMBED_FNNAMES SETA 0" $< $@
.s.od:; $(AS) $(AFLAGS) -pd "Desk_AS_EMBED_FNNAMES SETA 1" $< $@
.s.odz:; $(AS) $(AFLAGS) -pd "Desk_AS_EMBED_FNNAMES SETA 1" $< $@
# ------------------------------------------------------------------------------
# Local build rules
#
all: $(TARGET)
debug: $(TARGET)
preprocess: $(TARGET)
$(TARGET): $(OBJS) $(LIBS) $(EXT).local_dirs
$(MKDIR) l
$(LB) $(LBFLAGS) -o $@ $(OBJS)
# ------------------------------------------------------------------------------
# Common build rules
$(EXT).local_dirs:
@$(MKDIR) $(EXT)
@$(TOUCH) $@
$(EXP_DIR).dirs:
@$(MKDIR) $(EXP_DIR).h
@$(MKDIR) $(EXP_DIR).o
@$(TOUCH) $@
# ------------------------------------------------------------------------------
# RISC OS ROM build rules
#
export: export_$(PHASE)
export_hdrs: $(EXP_DIR).dirs
@$(CP) Export.h $(EXP_DIR).* $(CPFLAGS)
@$(CP) VersionNum $(EXP_DIR).LibVersion $(CPFLAGS)
export_libs: $(TARGET) $(EXP_DIR).dirs
@$(CP) $(TARGET) $(EXP_DIR).o.* $(CPFLAGS)
clean:
$(WIPE) $(EXT) $(WFLAGS)
# ------------------------------------------------------------------------------
# RISC OS disc build rules
#
install:
@$(MKDIR) $(INSTDIR)
@$(CP) $(EXP_DIR) $(INSTDIR).$(COMPONENT) $(CPFLAGS)
# ------------------------------------------------------------------------------
# Dynamic dependencies:
# File: Makefile
# Purpose: Makefile for DDTLib
# Author: Ben Laughton
# Copyright RISC OS Open Limited.
#
# This file is part of DDTLib.
#
# Wild is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# Wild is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
# Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with DDTLib. If not, see <http://www.gnu.org/licenses/>.
#
# Makefile for DDTLib
#
# History:
#
# 2000-04-10: BAL
# Created.
# ------------------------------------------------------------------------------
# Generic options
#
MKDIR = cdir
CP = copy
RM = remove
WIPE = x wipe
STRIPDEPND = stripdepnd
# ------------------------------------------------------------------------------
# Flags
#
CPFLAGS = ~cfr~v
WFLAGS = ~c~vr
# ------------------------------------------------------------------------------
# Program specific options
#
COMPONENT = DDTLib
# C debugging and DebugLib do not map 1<->1 since DebugLib is used for other
# stuff as well.
C_DEBUG_ON = -DDesk_DEBUG
C_DEBUG_OFF = -DNDEBUG
INSTDIR ?= <Install$Dir>
# ------------------------------------------------------------------------------
# Build rules
#
# Local
all:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_OFF) LIBSUFFIX= EXT=o
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_OFF) LIBSUFFIX=_M EXT=z
@echo $(COMPONENT): build complete
debug:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_ON) LIBSUFFIX=_D EXT=od
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_ON) LIBSUFFIX=_M_D EXT=odz
@echo $(COMPONENT): debug build complete
preprocess:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_OFF) EXT=i
@echo $(COMPONENT): preprocessing complete
export: export_$(PHASE)
export_hdrs:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) TARGET=AvoidAMUBug EXT=AvoidAMUBug
@echo $(COMPONENT): export complete (hdrs)
export_libs:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_OFF) LIBSUFFIX= EXT=o
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXTRA_C_FLAGS=$(C_DEBUG_OFF) LIBSUFFIX=_M EXT=z
@echo $(COMPONENT): export complete (libs)
install:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) INSTDIR=$(INSTDIR) TARGET=AvoidAMUBug EXT=AvoidAMUBug
@echo $(COMPONENT): install complete
COMPONENT = DDTLib
OBJS = ThrowBack SrcPos SectFile Print1 NrSymb GetProc DDT2 \
DDT AIFHeader
HDRS = AIFHeader DDT DDT2
CDEFINES = -DNDEBUG
ASMDEFINES = -pd "Desk_AS_EMBED_FNNAMES SETA 0"
clean:
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXT=o
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXT=z
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXT=od
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXT=odz
@amu -f MainMake $(MFLAGS) $(MAKECMDGOALS) EXT=i
@$(WIPE) l $(WFLAGS)
@$(STRIPDEPND) MainMake
@echo $(COMPONENT): cleaned
include CLibrary
# Dynamic dependencies:
/* (0.05)
/* (0.06)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.05
#define Module_MajorVersion_CMHG 0.06
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 18 Oct 2014
#define Module_Date_CMHG 10 Jan 2015
#define Module_MajorVersion "0.05"
#define Module_Version 5
#define Module_MajorVersion "0.06"
#define Module_Version 6
#define Module_MinorVersion ""
#define Module_Date "18 Oct 2014"
#define Module_Date "10 Jan 2015"
#define Module_ApplicationDate "18-Oct-14"
#define Module_ApplicationDate "10-Jan-15"
#define Module_ComponentName "DDTLib"
#define Module_ComponentPath "gpl/RiscOS/Sources/ThirdParty/JSmith/Lib/DDTLib"
#define Module_FullVersion "0.05"
#define Module_HelpVersion "0.05 (18 Oct 2014)"
#define Module_LibraryVersionInfo "0:5"
#define Module_FullVersion "0.06"
#define Module_HelpVersion "0.06 (10 Jan 2015)"
#define Module_LibraryVersionInfo "0:6"
File moved
File moved
File moved
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment