diff --git a/Apple2BuildPipelineSample.xcodeproj/project.pbxproj b/Apple2BuildPipelineSample.xcodeproj/project.pbxproj deleted file mode 100644 index b18f58c..0000000 --- a/Apple2BuildPipelineSample.xcodeproj/project.pbxproj +++ /dev/null @@ -1,189 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXFileReference section */ - 70E84C2E19B10B3100159159 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = ""; }; - 70E84C2F19B10B3100159159 /* x.s */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.asm; path = x.s; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXGroup section */ - 70E84C2319B10B0500159159 = { - isa = PBXGroup; - children = ( - 70E84C2E19B10B3100159159 /* Makefile */, - 70E84C2F19B10B3100159159 /* x.s */, - ); - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXLegacyTarget section */ - 70E84C2819B10B0600159159 /* Apple2BuildPipelineSample */ = { - isa = PBXLegacyTarget; - buildArgumentsString = "$(ACTION)"; - buildConfigurationList = 70E84C2B19B10B0600159159 /* Build configuration list for PBXLegacyTarget "Apple2BuildPipelineSample" */; - buildPhases = ( - ); - buildToolPath = /usr/bin/make; - dependencies = ( - ); - name = Apple2BuildPipelineSample; - passBuildSettingsInEnvironment = 1; - productName = Apple2BuildPipelineSample; - }; -/* End PBXLegacyTarget section */ - -/* Begin PBXProject section */ - 70E84C2419B10B0500159159 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0600; - ORGANIZATIONNAME = "One Girl, One Laptop Productions"; - TargetAttributes = { - 70E84C2819B10B0600159159 = { - CreatedOnToolsVersion = 6.0; - }; - }; - }; - buildConfigurationList = 70E84C2719B10B0500159159 /* Build configuration list for PBXProject "Apple2BuildPipelineSample" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 70E84C2319B10B0500159159; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 70E84C2819B10B0600159159 /* Apple2BuildPipelineSample */, - ); - }; -/* End PBXProject section */ - -/* Begin XCBuildConfiguration section */ - 70E84C2919B10B0600159159 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.9; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - 70E84C2A19B10B0600159159 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.9; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - }; - name = Release; - }; - 70E84C2C19B10B0600159159 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - DEBUGGING_SYMBOLS = YES; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 70E84C2D19B10B0600159159 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 70E84C2719B10B0500159159 /* Build configuration list for PBXProject "Apple2BuildPipelineSample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 70E84C2919B10B0600159159 /* Debug */, - 70E84C2A19B10B0600159159 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 70E84C2B19B10B0600159159 /* Build configuration list for PBXLegacyTarget "Apple2BuildPipelineSample" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 70E84C2C19B10B0600159159 /* Debug */, - 70E84C2D19B10B0600159159 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 70E84C2419B10B0500159159 /* Project object */; -} diff --git a/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 87e3b43..0000000 --- a/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/xcshareddata/Apple2BuildPipelineSample.xccheckout b/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/xcshareddata/Apple2BuildPipelineSample.xccheckout deleted file mode 100644 index ac4cd1b..0000000 --- a/Apple2BuildPipelineSample.xcodeproj/project.xcworkspace/xcshareddata/Apple2BuildPipelineSample.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 1FF8E5B6-1315-475A-9CD0-FCCF194EDB92 - IDESourceControlProjectName - Apple2BuildPipelineSample - IDESourceControlProjectOriginsDictionary - - 1DDA97CB96411CB4840C13C24A3B935FA4FF778E - https://github.com/blondie7575/Apple2BuildPipeline - - IDESourceControlProjectPath - Apple2BuildPipelineSample/Apple2BuildPipelineSample.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - 1DDA97CB96411CB4840C13C24A3B935FA4FF778E - ../../.. - - IDESourceControlProjectURL - https://github.com/blondie7575/Apple2BuildPipeline - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 1DDA97CB96411CB4840C13C24A3B935FA4FF778E - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 1DDA97CB96411CB4840C13C24A3B935FA4FF778E - IDESourceControlWCCName - Apple2BuildPipeline - - - - diff --git a/Makefile b/Makefile index 75656c4..c6dd3f2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ include make/head.mk # target, where in memory to put it, etc. # The name of your system or binary file to build goes here: -PGM=example +PGM=___PACKAGENAME___ # Set the config you are building for. See these pages for details: # http://cc65.github.io/cc65/doc/apple2.html#s4 diff --git a/TemplateInfo.plist b/TemplateInfo.plist new file mode 100644 index 0000000..8edebc1 --- /dev/null +++ b/TemplateInfo.plist @@ -0,0 +1,136 @@ + + + + + Nodes + + main.c + Makefile + make/AppleCommander.jar + make/createDiskImage + make/DevApple.vii + make/dos33_template.dsk + make/head.mk + make/prodos_template.dsk + make/tail.mk + make/V2Make.scpt + + Definitions + + main.c + + Path + main.c + + make/V2Make.scpt + + Group + make + Path + make/V2Make.scpt + + make/tail.mk + + Group + make + Path + make/tail.mk + + make/prodos_template.dsk + + Group + make + Path + make/prodos_template.dsk + + make/head.mk + + Group + make + Path + make/head.mk + + make/dos33_template.dsk + + Group + make + Path + make/dos33_template.dsk + + make/DevApple.vii + + Group + make + Path + make/DevApple.vii + + make/createDiskImage + + Group + make + Path + make/createDiskImage + + make/AppleCommander.jar + + Path + make/AppleCommander.jar + Group + make + + Makefile + + Path + Makefile + + + Kind + Xcode.Xcode3.ProjectTemplateUnitKind + Identifier + com.halcyontouch.apple2BuildSystem + Ancestors + + com.apple.dt.unit.externalBuildSystem + + Concrete + + Description + This template builds Apple ][ programs using cc65. + Options + + Targets + + + TargetType + Legacy + TargetIdentifier + com.apple.dt.cocoaLegacyTarget + BuildToolPath + ___VARIABLE_buildToolPath___ + BuildToolArgsString + -C ___PACKAGENAME___ $(ACTION) + SharedSettings + + OTHER_CFLAGS + + OTHER_LDFLAGS + + + Configurations + + Debug + + DEBUGGING_SYMBOLS + YES + GCC_GENERATE_DEBUGGING_SYMBOLS + YES + GCC_OPTIMIZATION_LEVEL + 0 + + Release + + + + + + diff --git a/main.c b/main.c new file mode 100644 index 0000000..eeff6ff --- /dev/null +++ b/main.c @@ -0,0 +1,20 @@ +/* + * ___FILENAME___ + * ___PACKAGENAME___ + * + * Created by ___FULLUSERNAME___ on ___DATE___. + * Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. + * + */ + + +#include +#include + + +int main(void) +{ + printf("HELLO, WORLD!\n"); + cgetc(); + return 0; +} diff --git a/make/tail.mk b/make/tail.mk index 4600f6d..6f9823e 100644 --- a/make/tail.mk +++ b/make/tail.mk @@ -12,6 +12,8 @@ export PATH := $(PATH):$(CC65_BIN) +CWD=$(shell pwd) + C_OBJS=$(C_SRCS:.c=.o) C_DEPS=$(C_SRCS:.c=.u) ASM_OBJS=$(ASM_SRCS:.s=.o) @@ -84,7 +86,7 @@ $(DISKIMAGE): $(PGM) make/createDiskImage $(AC) $(MACHINE) $(DISKIMAGE) $(PGM) "$(START_ADDR)" execute: $(DISKIMAGE) - osascript make/V2Make.scpt $(PROJECT_DIR) $(PGM) $(PROJECT_DIR)/make/DevApple.vii "$(EXECCMD)" + osascript make/V2Make.scpt $(CWD) $(PGM) $(CWD)/make/DevApple.vii "$(EXECCMD)" %.o: %.c $(CL65) $(MACHCONFIG) $(CFLAGS) --create-dep -c -o $@ $< diff --git a/x.s b/x.s deleted file mode 100644 index ab71277..0000000 --- a/x.s +++ /dev/null @@ -1,43 +0,0 @@ -; -; exampleAsm.s -; Apple2BuildPipelineSample -; -; Part of a sample build pipeline for Apple ][ software development -; -; Created by Quinn Dunki on 8/15/14. -; One Girl, One Laptop Productions -; http://www.quinndunki.com -; http://www.quinndunki.com/blondihacks -; - -; Reserved locations - -INVERSE = $32 - - -; Constants - -CHAR_NORMAL = $ff -CHAR_INVERSE = $3f -CHAR_FLASH = $7f - - -; ROM entry points - -COUT = $fded - - - -; Main - -main: - lda #CHAR_FLASH - sta INVERSE - -loop: - lda #'X' + $80 - jsr COUT - jmp loop ; OMG so many Xs - - -