Hey everyone, I'm trying to do a makefile that spits out two .exe. The files that I have are stack.h, teststack.cpp, and main.cpp. The thing is that stack.h and teststack.cpp are a completely separate program from main.cpp, but I want to produce the .exe for these two programs with one make file. This is what I have:
all: teststack.cpp main.cpp
teststack.cpp: stack.h
g++ -o test teststack.cpp
main.cpp:
g++ -o app main.cpp
(the tabs are there, but they aren't marked inside the quotes).
This (obviously) doesn't work. It successfully gives me a 'test', but doesn't spit 'app'.