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

Code:
# Makefile for Stack program

all: 	main	

main:	stdlib.h iostream.h Stack.h string.h
	         g++ Stack.cpp calc.cpp  -o calc
now the Stack.h header file is something that I wrote... could that be related to why the makefile won't work?

Does anyone have any resources as to how to make a makefile with your own source code? That'd be excellent. Thanks.