For some reason when I try to use a makefile with a program of mine, it won't compile. However, when I compile it from the command line it works fine...
Here is the code for my makefile
now the Stack.h header file is something that I wrote... could that be related to why the makefile won't work?Code:
# Makefile for Stack program
main: stdlib.h iostream.h Stack.h string.h
g++ Stack.cpp calc.cpp -o calc
Does anyone have any resources as to how to make a makefile with your own source code? That'd be excellent. Thanks.