Made Makefile POSIX compliant
This commit is contained in:
		
							parent
							
								
									b563a0adb2
								
							
						
					
					
						commit
						03009f59fc
					
				
							
								
								
									
										28
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								Makefile
									
									
									
									
									
								
							| @ -2,20 +2,20 @@ all: sxiv | |||||||
| 
 | 
 | ||||||
| VERSION = git-20110606 | VERSION = git-20110606 | ||||||
| 
 | 
 | ||||||
| CC?=gcc | CC = gcc | ||||||
| DESTDIR?= | DESTDIR = | ||||||
| PREFIX?=/usr/local | PREFIX = /usr/local | ||||||
| CFLAGS+= -Wall -pedantic -DVERSION=\"$(VERSION)\" | CFLAGS = -Wall -pedantic -DVERSION=\"$(VERSION)\" | ||||||
| LDFLAGS+=  | LDFLAGS = | ||||||
| LIBS+= -lX11 -lImlib2 | LIBS = -lX11 -lImlib2 | ||||||
| 
 | 
 | ||||||
| SRCFILES=$(wildcard *.c) | SRC = image.c main.c options.c thumbs.c util.c window.c | ||||||
| OBJFILES=$(SRCFILES:.c=.o) | OBJ = $(SRC:.c=.o) | ||||||
| 
 | 
 | ||||||
| sxiv:	$(OBJFILES) | sxiv:	$(OBJ) | ||||||
| 	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) | 	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) | ||||||
| 
 | 
 | ||||||
| %.o: %.c Makefile config.h | .c.o: Makefile config.h | ||||||
| 	$(CC) $(CFLAGS) -c -o $@ $< | 	$(CC) $(CFLAGS) -c -o $@ $< | ||||||
| 
 | 
 | ||||||
| install: all | install: all | ||||||
| @ -25,10 +25,4 @@ install: all | |||||||
| 	chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/sxiv.1 | 	chmod 644 $(DESTDIR)$(PREFIX)/share/man/man1/sxiv.1 | ||||||
| 
 | 
 | ||||||
| clean: | clean: | ||||||
| 	rm -f sxiv *.o | 	rm -f $(OBJ) sxiv | ||||||
| 
 |  | ||||||
| tags: *.h *.c |  | ||||||
| 	ctags $^ |  | ||||||
| 
 |  | ||||||
| cscope: *.h *.c |  | ||||||
| 	cscope -b |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert
						Bert