39 lines
694 B
Makefile
39 lines
694 B
Makefile
out := killspam.exe
|
|
obj := net.o killspam.o
|
|
res := deathico.res
|
|
lib := ws2_32.lib regexp.lib
|
|
|
|
# cc = gcc -c -fasm -pedantic -Wall -O3\
|
|
# -fomit-frame-pointer -ffast-math -funroll-loops\
|
|
# $*.c -o $*.o
|
|
# ld = gcc -s -lws2_32 -O3 -o $(out) $(obj) $(res) $(lib)
|
|
# rc = windres $*.rc -o $*.res
|
|
|
|
cc = lcc -A -ansic -e8 -O -Fo$*.o $*.c
|
|
ld = lcclnk -s -o $(out) $(obj) $(res) $(lib)
|
|
rc = lrc -Fo$*.res $*.rc
|
|
|
|
default : $(out)
|
|
|
|
.PHONY : clean
|
|
clean :
|
|
$(foreach file, $(obj) $(out), -$(RM) $(file)$(br))
|
|
|
|
$(out) : $(obj) $(res)
|
|
$(ld)
|
|
|
|
net.o : net.c
|
|
$(cc)
|
|
|
|
killspam.o : killspam.c
|
|
$(cc)
|
|
|
|
deathico.res : deathico.rc
|
|
$(rc)
|
|
|
|
%.o : %.c
|
|
$(cc)
|
|
|
|
%.res : %.rc
|
|
$(rc)
|