Compile and run on OS X.
This commit is contained in:
		
							parent
							
								
									fac0750a2c
								
							
						
					
					
						commit
						eca0819609
					
				
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,6 +1,12 @@ | ||||
| CC      = gcc | ||||
| CFLAGS  = -W -Wall -pedantic -ansi -std=c99 -g | ||||
| CC     = gcc | ||||
| CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g | ||||
| 
 | ||||
| LDFLAGS = -lncursesw | ||||
| 
 | ||||
| ifeq ($(shell uname -s),Darwin) | ||||
| 	LDFLAGS += -L /opt/local/lib | ||||
| endif | ||||
| 
 | ||||
| PREFIX  = /usr/local | ||||
| 
 | ||||
| EXECUTABLE = ttysolitaire | ||||
|  | ||||
| @ -1,6 +1,5 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| 
 | ||||
| #include "card.h" | ||||
|  | ||||
| @ -1,6 +1,5 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| #include <ncurses.h> | ||||
| #include <assert.h> | ||||
|  | ||||
| @ -1,6 +1,5 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| 
 | ||||
| #include "deck.h" | ||||
|  | ||||
| @ -1,6 +1,5 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| 
 | ||||
| #include "frame.h" | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <stdbool.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| #include <time.h> | ||||
| #include <assert.h> | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| #include <stdio.h> | ||||
| #include <stdlib.h> | ||||
| #include <stdbool.h> | ||||
| #include <malloc.h> | ||||
| #include <errno.h> | ||||
| 
 | ||||
| #include "stack.h" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user