Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.standalone « avrdude « src « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9a773771e845978c5e937c16464dc1c043bfd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

TARGET = avrdude-slic3r

SOURCES = \
    arduino.c \
    avr.c \
    avrpart.c \
    avr910.c \
    bitbang.c \
    buspirate.c \
    butterfly.c \
    config.c \
    config_gram.c \
    crc16.c \
    fileio.c \
    lexer.c \
    linuxgpio.c \
    lists.c \
    pgm.c \
    pgm_type.c \
    pickit2.c \
    pindefs.c \
    safemode.c \
    ser_avrdoper.c \
    serbb_posix.c \
    serbb_win32.c \
    ser_posix.c \
    ser_win32.c \
    stk500.c \
    stk500generic.c \
    stk500v2.c \
    term.c \
    update.c \
    wiring.c \
    main.c \
    main-standalone.c

OBJECTS = $(SOURCES:.c=.o)
CFLAGS = -std=c99 -Wall -D_BSD_SOURCE -D_DEFAULT_SOURCE -O3 -DNDEBUG -fPIC
LDFLAGS = -lm

CC = gcc
RM = rm

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) -o ./$@ $(OBJECTS) $(LDFLAGS)

$(OBJECTS): %.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	$(RM) -f $(OBJECTS) $(TARGET)