Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generated Makefile.basic exe target needs .o's #461

Open
briangmilnes opened this issue Aug 16, 2024 · 4 comments
Open

generated Makefile.basic exe target needs .o's #461

briangmilnes opened this issue Aug 16, 2024 · 4 comments

Comments

@briangmilnes
Copy link

%.exe: *.o
$(CC) $(CFLAGS) -o $@ $^ $(KRML_HOME)/krmllib/dist/generic/libkrmllib.a

@briangmilnes
Copy link
Author

Or the library.

@msprotz
Copy link
Contributor

msprotz commented Aug 16, 2024

Aren't those in the generated Makefile.include? Makefile.basic is hand-written in lives in misc/

@briangmilnes
Copy link
Author

Well almost, it has no concept of main so I had to add
cc -I /home/milnes/third-party/everest/karamel/include -I /home/milnes/third-party/everest/karamel/krmllib/dist/generic -o build/KRML/c/main.exe build/KRML/c/main.o build/KRML/c/libkrml-makefiles.a /home/milnes/third-party/everest/karamel/krmllib/dist/generic/libkrmllib.a
build/KRML/c/main.exe

and it puts main.o in the archive. Which CC will ignore it seems.

@msprotz
Copy link
Contributor

msprotz commented Aug 16, 2024

did you pass -o foobar.exe to krml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants