mirror of
				https://gitlab.com/klmp200/LO27.git
				synced 2025-10-31 00:53:13 +00:00 
			
		
		
		
	Edit makefile to have an external gui lib
This commit is contained in:
		
							
								
								
									
										11
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
									
									
									
									
								
							| @@ -8,7 +8,7 @@ CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89 | ||||
| EXTLIBS=`sdl2-config --cflags --libs` | ||||
|  | ||||
| LIBSDIR=-L/usr/lib -L./Libs | ||||
| INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton | ||||
| INCLUDEDIR=-I/usr/include -I. -I./LibAutomaton -I./LibGui | ||||
|  | ||||
| #Exe test variables | ||||
| TARGET=main | ||||
| @@ -17,8 +17,9 @@ SOURCE=main | ||||
| SOURCECFILE=$(SOURCE:=.c) | ||||
| SOURCEOFILE=$(SOURCE:=.o) | ||||
|  | ||||
| DEPENDENCELIST=libAutomaton.so | ||||
| DEPENDENCENAMELIST=Automaton | ||||
| DEPENDENCELIST=libAutomaton.so libGui.so | ||||
| DEPENDENCENAMEONE=Automaton | ||||
| DEPENDENCENAMETWO=Gui | ||||
|  | ||||
|  | ||||
| all: $(TARGET) | ||||
| @@ -26,12 +27,12 @@ all: $(TARGET) | ||||
| $(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib | ||||
| 	@echo "\n Generating the " $(TARGET) " binary" | ||||
| 	mkdir -p build | ||||
| 	$(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMELIST) -o ./build/$(TARGET) | ||||
| 	$(CC) $(SOURCEOFILE) $(LIBSDIR) $(EXTLIBS) -l$(DEPENDENCENAMEONE) -l$(DEPENDENCENAMETWO) -o ./build/$(TARGET) | ||||
|  | ||||
| #Generating the library binary | ||||
| lib: | ||||
| 	@echo "\n Generating the automaton library binary" | ||||
| 	# $(MAKE) -C LibCell | ||||
| 	$(MAKE) -C LibGui | ||||
|  | ||||
| $(DEPENDENCELIST): | ||||
| 	@echo "\n Generating the automaton library binary" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user