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

This commit is contained in:
evgeny committed 2026-08-09 14:20:46 +03:00
1 parent 152cd7d50b
commit 4bf9d10bdf
2 files changed
+36

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ index.html
# Autotools
Makefile
!tools/etcpmon/Makefile
Makefile.in
/aclocal.m4
/autom4te.cache/
+35
View File
@@ -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)