mirror of
				https://bitbucket.org/ohhara/ohmulticastvideoscanner.git
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	Initial Version.
This commit is contained in:
		
						commit
						560f3314dc
					
				
							
								
								
									
										40
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,40 @@ | |||||||
|  | DEBUG = y | ||||||
|  | 
 | ||||||
|  | TARGET = omvs | ||||||
|  | OBJS = \
 | ||||||
|  | 	omvs_main.o | ||||||
|  | CC = gcc | ||||||
|  | LD = gcc | ||||||
|  | RM = rm -rf | ||||||
|  | PKGS = gstreamer-1.0 | ||||||
|  | CFLAGS = -I. `pkg-config --cflags $(PKGS)` `pcap-config --cflags` | ||||||
|  | CFLAGS += -std=gnu99 -W -Wall -Wno-unused-result -pedantic | ||||||
|  | LDFLAGS = `pkg-config --libs $(PKGS)` `pcap-config --libs` | ||||||
|  | 
 | ||||||
|  | ifeq ($(DEBUG),y) | ||||||
|  | CFLAGS += -g -O0 | ||||||
|  | LDFLAGS += -g -O0 | ||||||
|  | else | ||||||
|  | CFLAGS += -O2 -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT | ||||||
|  | LDFLAGS += -O2 | ||||||
|  | endif | ||||||
|  | 
 | ||||||
|  | .PHONY: all clean run | ||||||
|  | 
 | ||||||
|  | all: $(TARGET) | ||||||
|  | 
 | ||||||
|  | clean: | ||||||
|  | 	$(RM) $(TARGET) $(OBJS) | ||||||
|  | 
 | ||||||
|  | run: $(TARGET) | ||||||
|  | ifeq ($(DEBUG), y) | ||||||
|  | 	ulimit -c unlimited ; G_MESSAGES_DEBUG=all ./$(TARGET) | ||||||
|  | else | ||||||
|  | 	./$(TARGET) | ||||||
|  | endif | ||||||
|  | 
 | ||||||
|  | $(TARGET): $(OBJS) | ||||||
|  | 	$(LD) -o $@ $^ $(LDFLAGS) | ||||||
|  | 
 | ||||||
|  | %.o: %.c | ||||||
|  | 	$(CC) $(CFLAGS) -c -o $@ $< | ||||||
							
								
								
									
										9
									
								
								omvs_main.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								omvs_main.c
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | |||||||
|  | #include <pcap.h> | ||||||
|  | #include <gst/gst.h> | ||||||
|  | 
 | ||||||
|  | int main(int argc, char **argv) { | ||||||
|  |     (void)argc; | ||||||
|  |     (void)argv; | ||||||
|  | 
 | ||||||
|  |     return 0; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user