Commit Graph

293 Commits

Author SHA1 Message Date
Wayne Parham db395e5988 Improved sample program symDisplay.c 2021-05-23 13:31:28 -05:00
mrdudz d2da30a7e2 give the "samples" target something to do to supress the "nothing to be done for 'samples'" message 2021-05-16 23:38:17 +02:00
mrdudz ce487651b0 as suggested by Oliver:
- only output messages if MAKELEVEL is 0
- indent nested ifeq
- use if (,) syntax
2021-05-16 22:24:35 +02:00
mrdudz a9af6aa743 fix warnings 2021-05-16 18:29:45 +02:00
mrdudz 4ba3ff3048 redirect c64 to geos-cbm and apple2enh to geos-apple when given with SYS= on the command line, as suggested by oliver 2021-05-16 18:23:23 +02:00
mrdudz 53f0552fe7 fix warnings 2021-05-16 17:12:50 +02:00
WayneParham e9fd87d07a
Merge branch 'master' into master 2021-05-16 10:02:37 -05:00
mrdudz aecb01986a fix list of executables for geos-apple 2021-05-16 15:45:34 +02:00
mrdudz 86bd6b9add Added executable list for all targets and print a message when certain
samples are not available for a target (instead of failing). This makes
"make SYS=<target>" in samples recursively work for all supported targets.
2021-05-15 19:48:19 +02:00
Wayne Parham 321bac4178 Remove TAB characters 2021-05-13 14:43:16 -05:00
Wayne Parham f09ffb2a45 symNotepad.c 2021-05-12 01:08:13 +01:00
Wayne Parham 27e04b36b0 Makefile updates 2021-05-09 17:24:15 -05:00
Wayne Parham f81aefe8bd Synertek Systems Sym-1 config files 2021-05-09 17:13:24 -05:00
Wayne Parham 044a0838a3 Changes to existing cc65 source to support Synertek Systems Sym-1 2021-05-09 16:52:48 -05:00
Wayne Parham 6e79379405 Synertek Systems Sym-1 machine-specific files 2021-05-09 16:34:53 -05:00
mrdudz 48710af55a make plasma sample work again despite issue #1348 2020-11-19 23:21:06 +01:00
Oliver Schmidt 79cf1e13a7
Adjusted to recent change in time.h 2020-10-25 21:33:08 +01:00
mrdudz b773bb9ded some more $(RM) vs $(DEL) fixing 2020-10-15 19:34:40 +02:00
mrdudz 6920b8be78 $(RM) abc -> @$(DEL) abc 2>$(NULLDEV) 2020-10-15 18:53:56 +02:00
mrdudz a0dc7cd9e4 fix grc example, fix makefiles to compile grc example correctly 2020-10-15 18:41:17 +02:00
mrdudz f60af0301a fix non working Makefiles 2020-10-15 18:35:54 +02:00
Oliver Schmidt 095de4ea52 Write o65 files as SEQ files. 2020-10-15 12:54:01 +02:00
mrdudz 037a806036 also rename README to readme.txt in the Makefile :) 2020-10-04 17:20:40 +02:00
Oliver Schmidt fd208fdf0b - Added support for calling subdir Makefiles for the make targets 'samples' and 'clean'.
- Adjusted the 'tutorial' Makefile to actually work as expected.

Note: The 'disasm' and 'geos' Makefiles don't seem to work so they are not called as of now.
2020-10-03 19:35:23 +02:00
mrdudz 3d8e787e66 move testcode/grc to samples/geos 2020-09-29 19:08:40 +02:00
mrdudz bbece736f5 move testcode/disasm into samples/ instead 2020-09-29 19:06:05 +02:00
mrdudz eb87c6d373 rename README to readme.txt 2020-09-29 18:54:30 +02:00
mrdudz fb8b45e479 added note on how to manage the sample programs 2020-09-24 00:18:28 +02:00
mrdudz 5e2d2a54f6 added makefile for the GEOS samples. geosconio.c and rmvprot.c do not compile right now, someone with more GEOS knowledge should look at them 2020-08-27 14:25:33 +02:00
mrdudz 4008ab556c added a Makefile 2020-08-27 01:34:18 +02:00
Greg King 4296cbaf82 Added a 320x200x256 TGI driver to the Commander X16 library.
Made the mandelbrot sample program handle the X16's 256 colors.
2020-07-15 17:30:58 -04:00
Oliver Schmidt bcb8b49907 Removed executable bit. 2020-07-12 23:11:43 +02:00
Greg King 410e4502ee Added a 160x192x2 TGI (graphics) driver to the VIC-20 library.
The driver requires a special linker configuration: "vic20-tgi.cfg".
The VIC-20 computer needs at least 8K of expansion RAM!

"tgidemo.c" needed to be adjusted because the VIC-20's vertical (y) range is greater than its horizontal (x) range -- the opposite of most other platforms.  Also, the circle demo would jam on the VIC-20.
2020-07-08 05:55:30 -04:00
Greg King 8b5ae001e5 Refactored the TGI demo.
Cleared the screen at the beginning of each demo instead of at the end.  Setting the colors before clearing makes it more reliable and consistent across platforms.
2020-06-05 13:37:20 -04:00
Dirk Jagdmann c15f4975d0 fix the clean: target to remove any disk images. 2020-03-30 21:19:12 +02:00
mc78 7bae9038cf Replaced plain 0's and 1's in exit statements with EXIT_SUCCESS or EXIT_FAILURE 2019-11-19 14:08:00 +01:00
Greg King 39b10f9599 Added new program descriptions to the list. 2019-10-11 10:48:56 -04:00
Fabrizio Caruso fb260ef17f Init is no longer in crt0.s 2019-10-09 17:01:02 +02:00
Fabrizio Caruso 7706ea2f13 Improve comments 2019-10-09 17:01:02 +02:00
Fabrizio Caruso 1b1d29ca9e Comments 2019-10-09 17:01:02 +02:00
Fabrizio Caruso b051c913e9 Add supervisionhello in samples/Makefile 2019-10-09 17:01:02 +02:00
Fabrizio Caruso eb83a3fd0f Improve helloworld example for Supervision 2019-10-09 17:01:02 +02:00
Fabrizio Caruso cdb8035cf0 Move screen init into crt0.s 2019-10-09 17:01:02 +02:00
Fabrizio Caruso 74a904be54 Hello world example for the Supervision 2019-10-09 17:01:02 +02:00
Oliver Schmidt 9be25dab9c Minor URL update. 2019-07-15 12:29:25 +02:00
Oliver Schmidt ac0b452834 Added '_' prefix to sin and cos.
Users complained that otherwise the names might clash with their functions.
2019-04-13 11:25:54 +02:00
Christian Groessler ec5e38617a atari5200: implement bgcolor() and textcolor()
Includes some other small fixes/cleanups.
2019-04-12 12:49:38 +02:00
Oliver Schmidt 0576fe51e7 Minor clarification. 2019-04-04 17:13:09 +02:00
Oliver Schmidt 5daed49e97 Fixed typo. 2019-04-04 16:38:40 +02:00
greg-king5 60e40c854c
Removed a "cc65_" prefix.
This change is needed because of commit 3d8c3a4948.
2019-03-30 11:06:09 -04:00
Christian Groessler 58484449b4 remove TABs 2019-02-05 23:27:52 +01:00
Greg King a6b04f6e97 Changed most "backticks" (grave accents) into apostrophes.
Quotations that are embraced by tick marks now look better, in most fonts.
2019-01-05 14:57:12 -05:00
Oliver Schmidt 535088fe73 Support --print-target-path with spaces.
Don't try this at home ;-))
2018-06-10 18:12:09 +02:00
Oliver Schmidt 9877042450 Use --print-target-path only as last resort.
--print-target-path may return a path with (escaped) spaces. We'll use that path with $(wildcard ...), that's fine. But then we use the outcome with $(foreach ...) and there things fail badly and there's nothing to do about it.

Therefore we a) try to avoid --print-target-path in the first place and b) explicitly bail out if we end up with spaces.
2018-06-08 18:58:36 +02:00
Greg King e235ac2a0e Added a preprocessor guard to tgidemo.c that avoids a compiler warning.
DoWarning() is compiled only if it will be used.
2018-04-17 16:53:10 -04:00
Greg King 5f6d024804 Made the samples Makefile be able to build the samples for targets other than the ones named explicitly in that file. 2018-04-14 18:10:11 -04:00
Oliver Schmidt 8e75906737 Switched Apple II output format to AppleSingle.
Although the primary target OS for the Apple II for sure isn't DOS 3.3 but ProDOS 8 the Apple II binary files contained a DOS 3.3 4-byte header. Recently I was made aware of the AppleSingle file format. That format is a much better way to transport Apple II meta data from the cc65 toolchain to the ProDOS 8 file system. Therefore I asked AppleCommander to support the AppleSingle file format. Now that there's an AppleCommander BETA with AppleSingle support it's the right time for this change.

I bumped version to 2.17 because of this from the perspective of Apple II users of course incompatible change.
2018-03-07 23:05:21 +01:00
Marco van den Heuvel b0ef67d14c Added GEOS 1.3 and 1.5 detection. 2018-02-15 15:24:58 -08:00
Marco van den Heuvel e17b9177de Fixed GeOS -> GEOS and added newline to geossym2.inc. 2018-02-14 10:22:10 -08:00
Marco van den Heuvel d93f84f4bc Improved GeOS version detection. 2018-02-13 19:19:40 -08:00
Oliver Schmidt 5145235b97 Updated AppleCommander URL. 2018-02-01 21:46:56 +01:00
Oliver Schmidt ab54f92024 Make use of C library waitvsync(). 2017-11-21 23:03:50 +01:00
Pascal de Bruijn 19f6ae1d54 make: change uppercase prefix var 2017-07-22 16:38:50 +02:00
Pascal de Bruijn 64581b65b0 samples: install to subdirectory 2017-07-22 16:33:42 +02:00
Greg King acb7c61302 Removed a pointless cc65 command-line option from the samples makefile.
"-Oi --codesize 500" is the same as "-O --codesize 200 --codesize 500".  That first "--codesize" is replaced by the second one.  Don't set it twice.
2017-03-10 08:47:48 -05:00
Christian Groessler ccdbb2b0e6 Add testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c.
mouse-test.c can be use to test all available mouse drivers for a given target.
Currently supported targets are Atari, C64, and C128.
To avoid confusion, rename samples/mousetest.c to mousedemo.c.
2017-02-13 22:48:34 +01:00
Florent Flament c1aac0de0e Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
Oliver Schmidt dfbd96f09e Make use of doesclrscrafterexit(). 2016-10-15 15:47:25 +02:00
Oliver Schmidt 22d1f1da1b Minor style fix. 2016-08-10 11:38:11 +02:00
Greg King 4014783275 Made the samples Makefile run cl65 only when we want a disk image.
That change avoids an error message when we "make clean" from the top-level make-file (it removes the tools before it cleans the samples).
2016-07-03 02:23:59 -04:00
Joni Lapilainen ab10bd4014 Fix typo in samples makefile 2016-06-23 15:46:09 +03:00
Greg King 5d9f4dc89d Made the overlay demo programs compile for CBM targets again.
<conio.h> includes target-specific headers; so, we didn't bother to include <cbm.h> where it is needed.  But, '#include <conio.h>' was removed from some files; so now, we must include <cbm.h> explicitly.
2016-06-19 17:41:18 -04:00
Oliver Schmidt c9e9679a06 Improved doc and samples default target.
The 'all' target deliberately doesn't build the doc nor the samples. But that doesn't mean that the Makefiles in the 'doc' and 'samples' directories must default to the (empty) 'all' target.
2016-06-19 18:55:00 +02:00
Oliver Schmidt 2ef43e425a Adjusted to recent change. 2016-06-19 01:39:27 +02:00
Oliver Schmidt 66561c23c1 Made Makefile actually work.
Supported target systems:
* c64 (default)
* apple2
* apple2enh
* atari
* atarixl
2016-06-19 01:22:59 +02:00
Oliver Schmidt 64c10aa2fe Minor simplification. 2016-06-18 23:57:18 +02:00
Oliver Schmidt 9bc096d9b0 Make use of doesclrscrafterexit(). 2016-06-18 23:57:17 +02:00
Oliver Schmidt 271b65aa70 Added hint on how to quit program. 2016-06-12 23:48:19 +02:00
Oliver Schmidt 98973ee901 Avoid warnings on monochrom targets (and remove unnecessary code). 2016-06-12 23:30:29 +02:00
Oliver Schmidt 9f01392922 Write overlays to d64 image. 2016-06-02 20:49:10 +02:00
Oliver Schmidt d653054d98 Allow usage of C1541 environment variable. 2016-06-01 23:48:09 +02:00
Oliver Schmidt 24256256fb Removed shell for-loop.
Just a few of the many reasons why shell for-loops have no place in (GNUmake) Makefiles:
* They don't conform to https://www.gnu.org/software/make/manual/html_node/Utilities-in-Makefiles.html
* They break Windows builds for sure
* They don't fit to make's approach of working with sets
* They break make parallelism
2016-06-01 23:47:02 +02:00
Oliver Schmidt 38778cdeb6 Don't cleanup files "just in case".
The build doesn't create *.lbl files so we're not deleting *.lbl files.
2016-06-01 23:04:46 +02:00
Oliver Schmidt 1ab725e526 Don't hide build commands.
The samples Makefile serves educational purposes. From that perspective it's counterproductive to hide the actual build commands. Apart fom that it becomes visible if an installed cc65 is used to build the samples.
2016-06-01 23:00:37 +02:00
Oliver Schmidt 506e44fb5d Corrected cleanup semantics.
There's no zap goal in cc65 Makefiles.
2016-06-01 22:50:42 +02:00
Oliver Schmidt ec06d162bd Fixed clean goal on Windows.
Now that the clean goal of the samples Makefile is part of the global clean goal it should work on Windows!

BTW: Ideally the whole samples Makefile should work on Windows ;-))
2016-06-01 22:14:30 +02:00
Oliver Schmidt d78b44f8c6 Adjusted to the cc65 Makefile style.
The cc65 Makefiles have a single .PHONY target. It serves as an overview of the "interesting" goals supported by the Makfile.
2016-06-01 21:08:47 +02:00
Oliver Schmidt 6fca6897cd Removed tab characters.
The cc65 code base uses tab character only for make recipes.
2016-06-01 20:59:33 +02:00
Oliver Schmidt d455263e66 Don'r presume that the C64 is the only target.
Other targets have disks too and if at some point some one is interested enough to add support for disk creation for other targets too then 'disk' is no good goal name for a C64 disk.
2016-06-01 19:46:02 +02:00
Oliver Schmidt 3c8fd588f6 Don't fiddle with foreign files.
No cc65 tool creates *~ files so we don't cleanup *~ files. If some other tool (like an editor) creates *~ files it's up to the user - and only him - to decide when those files are to be deleted !
2016-06-01 19:41:51 +02:00
Patrycjusz R. Łogiewa b7e7d1496b corrected all samples and samples.d64 targets 2016-06-01 16:37:05 +02:00
Patrycjusz R. Łogiewa 4dcfc036c8 samples zip and install targets moved into samples/Makefile as agreed 2016-05-30 17:42:01 +02:00
Patrycjusz R. Łogiewa ba10c74a7a directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
mrdudz 5bf8523dcd fix hello.c 2015-11-30 19:48:10 +01:00
Greg King f94945308f Added missing parentheses.
A function call had looked like a function pointer (which caused an incompatible comparison).
2015-10-17 12:09:06 -04:00
Oliver Schmidt 575f859a03 Keep low level VIC sprite stuff out of user code. 2015-10-09 18:33:35 +02:00
mrdudz 0e29a0993f Merge remote-tracking branch 'upstream/master' into pcenginetarget 2015-07-20 18:42:04 +02:00
Oliver Schmidt 1d5ed2e2a7 Merge pull request #179 from greg-king5/overlay
Add overlay-samples make-rules.
2015-07-20 18:00:56 +02:00
mrdudz 4afcfb3498 fixed hello.c for pce 2015-07-20 16:03:03 +02:00
Oliver Schmidt 1072f7d6f7 Made hello program compatible with joystick-only target(s). 2015-07-20 07:46:18 +02:00