AVD Template Project - Skeleton OS4 appli
- Size
- 194K (199,008 bytes)
- Added
- 2026-11-20 02:44
- Downloads
- 1
- Long Description
- ********************************************** * The AVD Template Project v1.2.0.0 (11/18/2005) * * Copyright (c)2005 by BITbyBIT Software Group LLC, * All Rights Reserved. * ********************************************** LICENSE TO USE: --------------- See the LICENSE.txt file distributed with this archive. INSTALLING The Source --------------------- Simply unpack the archive to any directory or path. The contents of the archive should unpack as follows: include (Global includes for every project based on the Template) AVD_Template (The Actual application source tree) README_FIRST.txt increment_version.amigaos4-ppc increment_version.linux-i386 First, copy the version of the "increment_version" program you need for this system to somewhere in your path and rename it to simply "increment_version". So, if you are compiling on the AmigaONE directory, you need the "increment_version.amigaos4-ppc" version. In this case SDK:Local/C in a good place for this file: copy increment_version.amigaos4-ppc TO SDK:Local/C/increment_version Once you have unpacked the archive, you should make a duplicate copy of the AVD_Template directory in the same path like this: copy AVD_Template TO MyFirstProject CLONE ALL Your working directory should now look like this: include AVD_Template MyFirstProject README_FIRST.txt Now you are ready to build your first working AmigaOS4 application. cd MyFirstProject/amigaos4/make make If all went well you should now have a bunch of object files (*.o) and an executable program called "avd_template". You can go ahead and run the program now like so: avd_template or avd_template --help RENAMING your project --------------------- Once you've run this basic app, you'll probably want to change the name being displayed in title bar and such and make this project your own. This is as easy as a couple of renamed files are some quick search and replace of "avd_template" for your project name: First off (still assuming we are working in the new project dir - MyFirstProject), rename the two main project files like so: cd MyFirstProject/common rename avd_template.c TO myfirstproject.c rename avd_template.h TO myfirstproject.h Now edit your newly renamed "myfirstproject.c" and change the include of it's main header file (now myfirstproject.h): MyFirstProject/common/myfirstproject.c (BEFORE) ----------------------------------------------- /* Include project header file */ #include "avd_template.h" <----- HERE MyFirstProject/common/myfirstproject.c (AFTER) ---------------------------------------------- /* Include project header file */ #include "myfirstproject.h" <----- HERE Next edit the Makefile under amigaos4/make/ and replace all instances of "avd_template" with "myfirstproject". You should find 4 cases right in the top of the file: MyFirstProject/amigaos4/make/Makefile (BEFORE) ---------------------------------------------- all: avd_template <----- HERE #------------------------------------------------------------------- # Define the Project name and objects to be built here # PROJECTNAME = avd_template <----- HERE PROJECTNAME_DEBUG = $(PROJECTNAME)_debug PROJECT_SRC = $(CMN_PROJECTSRC)avd_template.c <----- HERE PROJECT_H = $(CMN_PROJECTSRC)avd_template.h <----- HERE MyFirstProject/amigaos4/make/Makefile (AFTER) --------------------------------------------- all: myfirstproject <----- HERE #------------------------------------------------------------------- # Define the Project name and objects to be built here # PROJECTNAME = myfirstproject <----- HERE PROJECTNAME_DEBUG = $(PROJECTNAME)_debug PROJECT_SRC = $(CMN_PROJECTSRC)myfirstproject.c <----- HERE PROJECT_H = $(CMN_PROJECTSRC)myfirstproject.h <----- HERE Now, with the source files renamed and the Makefile fixed up to match, you can go into the avd_ver.h file and update the version defines: NOTE: The AVD Template now provides automatic version number updating,