Browse Source

etcpmon: add Makefile to git (was ignored by *.gitignore Makefile pattern)

topo_upd
evgeny 2 months ago
parent
commit
229a508022
  1. 1
      .gitignore
  2. 35
      tools/etcpmon/Makefile

1
.gitignore vendored

@ -28,6 +28,7 @@ index.html
# Autotools
Makefile
!tools/etcpmon/Makefile
Makefile.in
/aclocal.m4
/autom4te.cache/

35
tools/etcpmon/Makefile

@ -0,0 +1,35 @@
# 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)
Loading…
Cancel
Save