Makefile Libraries

closed account (GbX36Up4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	# Link command:
ASCII_RPG: main.o get_res.o loadalleg.o keyboardinput.o
		c++ main.o get_res.o loadalleg.o keyboardinput.o -o ASCII_RPG
    
	# Compilation commands:
main.o: main.cpp header.h
	c++ -c main.cpp -o main.o
    
get_res.o: get_res.cpp header.h
	c++ -c get_res.cpp -o get_res.o
   
loadalleg.o: loadalleg.cpp header.h
	c++ -c loadalleg.cpp -o loadalleg.o 
	
keyboardinput.o:keyboardinput.cpp header.h
	c++ -c keyboardinput.cpp -o keyboardinput.o


The makefile appears to be working, except I need to link the allegro library. I'm pretty sure the command is: $(allegro config --libs), but I don't know where exactly to put it. Any help appreciated. :)
Topic archived. No new replies allowed.