EdouardBERGE / rasm

RASM powerful Z80 assembler
129 stars 16 forks source link

Default build target fails #6

Closed cpcitor closed 3 years ago

cpcitor commented 3 years ago

Summary

Building with default procedure git clone ; make fails.

Steps to reproduce

git clone https://github.com/EdouardBERGE/rasm
cd rasm
# Read ReadMe, see no build instructions
make

Observed result

cc rasm.c -lm -lrt -march=native -o rasm.exe -g -pthread -DRDD
rasm.c:84:10: fatal error: ../tools/library.h: Aucun fichier ou dossier de ce type
   84 |  #include"../tools/library.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:10 : debug] Erreur 1

Proper fix

May I suggest to either make "prod" the default target, like this:

.PHONY: prod debug clean default

default: prod

...or add something in the ReadMe, like "to build, issue make prod, as the default target debug requires my local tools that are not distributed"?

EdouardBERGE commented 3 years ago

thank you, i updated the makefile ;)