You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
696 B

# ETCP Monitor Makefile
# Usage: make [target]
#
# Targets:
# all - Build the application (default)
# clean - Remove object files and executable
# rebuild - Clean and rebuild
CC = gcc
CFLAGS = -Wall -O2 -DWIN32_LEAN_AND_MEAN
CFLAGS += -I. -I../../src
LDFLAGS = -mwindows
LIBS = -lws2_32 -lcomctl32 -luser32 -lgdi32
TARGET = etcpmon.exe
SRCS = etcpmon_main.c etcpmon_gui.c etcpmon_client.c etcpmon_graph.c
OBJS = $(SRCS:.c=.o)
.PHONY: all clean rebuild
all: $(TARGET)
$(TARGET): $(OBJS)
@echo Linking $@
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
%.o: %.c
@echo Compiling $<
$(CC) $(CFLAGS) -c -o $@ $<
clean:
@echo Cleaning...
rm -f $(OBJS) $(TARGET)
rebuild: clean $(TARGET)